We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ece9c1 commit 368bd66Copy full SHA for 368bd66
Cargo.toml
@@ -32,6 +32,8 @@ serde_json = "1.0.41"
32
typemap = "0.3.3"
33
serde_urlencoded = "0.6.1"
34
log = "0.4.8"
35
+accept-encoding = "0.2.0-alpha.2"
36
+async-compression = "0.1.0-alpha.7"
37
38
[dependencies.http-service-hyper]
39
optional = true
src/context.rs
@@ -55,6 +55,11 @@ impl<State> Context<State> {
55
&self.request
56
}
57
58
+ /// Access a mutable handle to the entire request.
59
+ pub fn request_mut(&mut self) -> &mut http_service::Request {
60
+ &mut self.request
61
+ }
62
+
63
/// Access app-global state.
64
pub fn state(&self) -> &State {
65
&self.state
0 commit comments