[−][src]Struct mini_async_http::RequestBuilder
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
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,