[][src]Struct qiniu_http::ResponseBuilder

pub struct ResponseBuilder { /* fields omitted */ }

Builder for Response.

Methods

impl ResponseBuilder[src]

pub fn status_code<VALUE: Into<StatusCode>>(self, value: VALUE) -> Self[src]

pub fn headers<VALUE: Into<Headers<'static>>>(self, value: VALUE) -> Self[src]

pub fn server_ip<VALUE: Into<IpAddr>>(self, value: VALUE) -> Self[src]

pub fn server_port<VALUE: Into<u16>>(self, value: VALUE) -> Self[src]

pub fn build(self) -> Result<Response, String>[src]

Builds a new Response.

Errors

If a required field has not been initialized.

impl ResponseBuilder[src]

pub fn header<HeaderNameT: Into<HeaderName<'static>>, HeaderValueT: Into<HeaderValue<'static>>>(
    self,
    header_name: HeaderNameT,
    header_value: HeaderValueT
) -> Self
[src]

pub fn stream<B: Read + 'static>(self, body: B) -> Self[src]

Trait Implementations

impl Default for ResponseBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]