[][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]

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_as_body(self, body: impl Read + 'static) -> Self[src]

pub fn bytes_as_body(self, body: impl Into<Vec<u8>>) -> Self[src]

pub fn file_as_body(self, body: File) -> Self[src]

pub fn build(self) -> Response[src]

Trait Implementations

impl Default for ResponseBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>,