diff --git a/nginx_module/src/http_request.rs b/nginx_module/src/http_request.rs index 8bc3b17..6324cb6 100644 --- a/nginx_module/src/http_request.rs +++ b/nginx_module/src/http_request.rs @@ -258,6 +258,10 @@ impl<'a> HttpRequest<'a> { } } + pub fn set_path(&mut self, data: NgxStr<'a>) { + self.0.unparsed_uri = data.inner(); + } + pub fn headers_out_ref(&mut self) -> &mut ngx_http_headers_out_t { &mut self.0.headers_out }