pub struct ResponseBits {
pub status: u16,
pub body: Option<String>,
pub headers: BTreeMap<String, String>,
}Expand description
The mutable response view the response-side pass and the
custom_response_modifier seam write.
The status and body pass through untouched, the headers gain the
security-header set and the CORS verdict; body is None when the
response carries none or it is not buffered.
Fields§
§status: u16The response status code.
body: Option<String>The buffered body prefix when one is available.
headers: BTreeMap<String, String>The headers the pass adds (security headers, CORS verdict).
Trait Implementations§
Source§impl Clone for ResponseBits
impl Clone for ResponseBits
Source§impl Debug for ResponseBits
impl Debug for ResponseBits
Auto Trait Implementations§
impl Freeze for ResponseBits
impl RefUnwindSafe for ResponseBits
impl Send for ResponseBits
impl Sync for ResponseBits
impl Unpin for ResponseBits
impl UnsafeUnpin for ResponseBits
impl UnwindSafe for ResponseBits
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