pub struct ServerRequest<'a> {
pub headers: Headers,
pub end_stream: bool,
/* private fields */
}Fields§
§headers: HeadersRequest headers
end_stream: boolTrue if requests ends with headers
Implementations§
Source§impl<'a> ServerRequest<'a>
impl<'a> ServerRequest<'a>
pub fn make_stream(self) -> HttpStreamAfterHeaders
Sourcepub fn register_stream_handler<F, H, R>(self, f: F) -> R
pub fn register_stream_handler<F, H, R>(self, f: F) -> R
Register synchnous stream handler (callback will be called immediately when new data arrives). Note that increasing in window size is the handler responsibility.
Auto Trait Implementations§
impl<'a> Freeze for ServerRequest<'a>
impl<'a> !RefUnwindSafe for ServerRequest<'a>
impl<'a> Send for ServerRequest<'a>
impl<'a> !Sync for ServerRequest<'a>
impl<'a> Unpin for ServerRequest<'a>
impl<'a> UnsafeUnpin for ServerRequest<'a>
impl<'a> !UnwindSafe for ServerRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more