aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util')
-rw-r--r--crates/shirabe/src/util/http/response.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/shirabe/src/util/http/response.rs b/crates/shirabe/src/util/http/response.rs
index 4f824baa..d505bde4 100644
--- a/crates/shirabe/src/util/http/response.rs
+++ b/crates/shirabe/src/util/http/response.rs
@@ -21,6 +21,13 @@ impl Response {
}
}
+ /// The url of the request this response answered. PHP keeps the whole request array in a
+ /// private property with no getter, and the plugin boundary codec needs the url out of it to
+ /// rebuild the value in the child.
+ pub(crate) fn request_url(&self) -> &str {
+ &self.url
+ }
+
pub fn get_status_code(&self) -> i64 {
self.code
}