pub struct ResponseMutation {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body: Bytes,
}Expand description
An owned, mutable view of an incoming response’s status, headers, and body,
handed to a ModifyResponseFn.
Unlike RequestMutation::body, this is always the full, already-buffered
body - a ModifyResponseFn is only ever invoked once the whole response has
been read into memory. See
HttpAcl::has_modify_response for the
performance implications of that.
Fields§
§status: u16The response’s HTTP status code.
headers: Vec<(String, String)>The response’s headers, in wire order. See RequestMutation::headers.
body: BytesThe response’s body.
Trait Implementations§
Source§impl Clone for ResponseMutation
impl Clone for ResponseMutation
Source§fn clone(&self) -> ResponseMutation
fn clone(&self) -> ResponseMutation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseMutation
impl Debug for ResponseMutation
Source§impl Default for ResponseMutation
impl Default for ResponseMutation
Source§fn default() -> ResponseMutation
fn default() -> ResponseMutation
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResponseMutation
impl PartialEq for ResponseMutation
impl StructuralPartialEq for ResponseMutation
Auto Trait Implementations§
impl !Freeze for ResponseMutation
impl RefUnwindSafe for ResponseMutation
impl Send for ResponseMutation
impl Sync for ResponseMutation
impl Unpin for ResponseMutation
impl UnsafeUnpin for ResponseMutation
impl UnwindSafe for ResponseMutation
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