Skip to content

Commit

Permalink
feat: adding request uri set_path method
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed Sep 27, 2024
1 parent 63eca13 commit a68706f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nginx_module/src/http_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a68706f

Please sign in to comment.