[][src]Struct mini_async_http::RequestBuilder

pub struct RequestBuilder { /* fields omitted */ }

Build a request

Implementations

impl RequestBuilder[src]

pub fn new() -> RequestBuilder[src]

pub fn method(self, method: Method) -> Self[src]

Provide the method for the request

pub fn path(self, path: String) -> Self[src]

Provide the path for the request

pub fn version(self, version: Version) -> Self[src]

Provide the version for the request

pub fn headers(self, headers: Headers) -> Self[src]

Provide the headers for the request

pub fn body(self, body: &[u8]) -> Self[src]

Provide the body for the request

pub fn build(self) -> Result<Request, BuildError>[src]

Build the request with provided informations. If some informations are missing, BuildError will occur

Trait Implementations

impl Default for RequestBuilder[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.