pub struct HttpChunkResponse<'r, R> {
pub reader: Pin<&'r mut R>,
pub chunk_size: usize,
pub max_age: Option<u32>,
pub cache_private: Option<bool>,
pub headers: Option<Vec<HttpHeader>>,
}Expand description
Chunked response handler for streaming large responses
Fields§
§reader: Pin<&'r mut R>Pinned reader for streaming data
chunk_size: usizeSize of each chunk in bytes
max_age: Option<u32>Cache control settings
cache_private: Option<bool>§headers: Option<Vec<HttpHeader>>Implementations§
Source§impl<'r, R> HttpChunkResponse<'r, R>
impl<'r, R> HttpChunkResponse<'r, R>
Sourcepub fn get_response_header(&self) -> Result<ResponseHeader>
pub fn get_response_header(&self) -> Result<ResponseHeader>
Builds and returns the HTTP response headers for chunked transfer
Auto Trait Implementations§
impl<'r, R> Freeze for HttpChunkResponse<'r, R>
impl<'r, R> RefUnwindSafe for HttpChunkResponse<'r, R>where
R: RefUnwindSafe,
impl<'r, R> Send for HttpChunkResponse<'r, R>where
R: Send,
impl<'r, R> Sync for HttpChunkResponse<'r, R>where
R: Sync,
impl<'r, R> Unpin for HttpChunkResponse<'r, R>
impl<'r, R> !UnwindSafe for HttpChunkResponse<'r, R>
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