Struct http_protocol::response::ResponseBuilder [−][src]
pub struct ResponseBuilder { /* fields omitted */ }Implementations
impl ResponseBuilder[src]
impl ResponseBuilder[src]pub fn http_version(&mut self, http_version: HttpVersion) -> &mut Self[src]
pub fn status_code(&mut self, status_code: StatusCode) -> &mut Self[src]
pub fn reason_phrase(&mut self, reason_phrase: ReasonPhrase) -> &mut Self[src]
pub fn headers(&mut self, headers: Headers) -> &mut Self[src]
pub fn body(&mut self, body: Body) -> &mut Self[src]
pub fn build(self) -> Result<Response, ResponseBuilderError>[src]
Trait Implementations
impl Clone for ResponseBuilder[src]
impl Clone for ResponseBuilder[src]fn clone(&self) -> ResponseBuilder[src]
fn clone(&self) -> ResponseBuilder[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for ResponseBuilder
impl Send for ResponseBuilder
impl Sync for ResponseBuilder
impl Unpin for ResponseBuilder
impl UnwindSafe for ResponseBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more