pub enum ConnectionResponse {
Whole(Response<Bytes>),
Partial {
len: Option<u64>,
response: Response<Bytes>,
},
}Available on crate feature
reverse-proxy only.Variants§
Whole(Response<Bytes>)
Partial
First part of body is in [Response::body], the remaining, len - response.body().len()
bytes, are readable from the EstablishedConnection. If the transfer-encoding is
chunked, the [Response::body] is also chunked so you can just continue relaying the data.
Auto Trait Implementations§
impl !Freeze for ConnectionResponse
impl !RefUnwindSafe for ConnectionResponse
impl Send for ConnectionResponse
impl Sync for ConnectionResponse
impl Unpin for ConnectionResponse
impl !UnwindSafe for ConnectionResponse
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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