1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

add path and query extractors

This commit is contained in:
Nikolay Kim
2018-03-26 15:58:30 -07:00
parent a56e5113ee
commit 68cf32e848
9 changed files with 290 additions and 3 deletions

View File

@@ -302,6 +302,11 @@ impl<S> PayloadHelper<S> where S: Stream<Item=Bytes, Error=PayloadError> {
}
}
/// Get mutable reference to an inner stream.
pub fn get_mut(&mut self) -> &mut S {
&mut self.stream
}
#[inline]
fn poll_stream(&mut self) -> Poll<bool, PayloadError> {
self.stream.poll().map(|res| {