pub struct ResponseBuilder { /* private fields */ }
Expand description
Builder for Response
.
Implementations§
source§impl ResponseBuilder
impl ResponseBuilder
pub fn status(&mut self, value: i32) -> &mut Self
pub fn body(&mut self, value: String) -> &mut Self
sourcepub fn headers<VALUE: Into<Headers>>(&mut self, value: VALUE) -> &mut Self
pub fn headers<VALUE: Into<Headers>>(&mut self, value: VALUE) -> &mut Self
Optional headers. Mostly used by HTTP downstream HTTP responses
pub fn link_header_processor( &mut self, value: fn(_: &str) -> PageHeader, ) -> &mut Self
Trait Implementations§
source§impl Clone for ResponseBuilder
impl Clone for ResponseBuilder
source§fn clone(&self) -> ResponseBuilder
fn clone(&self) -> ResponseBuilder
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ResponseBuilder
impl RefUnwindSafe for ResponseBuilder
impl Send for ResponseBuilder
impl Sync for ResponseBuilder
impl Unpin for ResponseBuilder
impl UnwindSafe for ResponseBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)