Skip to content

Commit

Permalink
Merge pull request #8 from G-Core/feat/request_set_path
Browse files Browse the repository at this point in the history
 adding request uri set_path method
  • Loading branch information
ruslanti authored Oct 2, 2024
2 parents 63eca13 + a68706f commit 7a6ea0d
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 7a6ea0d

Please sign in to comment.