[][src]Struct async_fetch::Request

pub struct Request { /* fields omitted */ }

Implementations

impl Request[src]

pub fn default() -> Self[src]

pub fn parse_url<U>(url: U) -> Result<Self, Error> where
    U: Into<String>, 
[src]

pub fn url(&self) -> &Url[src]

pub fn method(&self) -> &Method[src]

pub fn version(&self) -> &Version[src]

pub fn headers(&self) -> &HashMap<String, String>[src]

pub fn header<N: Into<String>>(&self, name: N) -> Option<&String>[src]

pub fn relay(&self) -> &Option<String>[src]

pub fn body_limit(&self) -> &Option<usize>[src]

pub fn headers_mut(&mut self) -> &mut HashMap<String, String>[src]

pub fn has_method(&self, value: Method) -> bool[src]

pub fn has_version(&self, value: Version) -> bool[src]

pub fn has_header<N: Into<String>>(&self, name: N) -> bool[src]

pub fn has_body_limit(&self) -> bool[src]

pub fn set_url(&mut self, value: Url)[src]

pub fn set_url_str<V: Into<String>>(&mut self, value: V) -> Result<(), Error>[src]

pub fn set_method(&mut self, value: Method)[src]

pub fn set_method_str(&mut self, value: &str) -> Result<(), Error>[src]

pub fn set_version(&mut self, value: Version)[src]

pub fn set_version_str(&mut self, value: &str) -> Result<(), Error>[src]

pub fn set_header<N: Into<String>, V: Into<String>>(
    &mut self,
    name: N,
    value: V
)
[src]

pub fn set_relay<V: Into<String>>(&mut self, value: V)[src]

pub fn set_body_limit(&mut self, length: usize)[src]

pub fn remove_header<N: Into<String>>(&mut self, name: N)[src]

pub fn remove_relay(&mut self)[src]

pub fn clear_headers(&mut self)[src]

pub fn to_proto_string(&self) -> String[src]

pub async fn send<'a, '_>(&'_ mut self) -> Result<Response<'a>, Error>[src]

pub async fn send_stream<'a, '_, '_, R>(
    &'_ mut self,
    body: &'_ mut R
) -> Result<Response<'a>, Error> where
    R: Read + Send + Unpin
[src]

pub async fn send_slice<'a, '_, '_>(
    &'_ mut self,
    body: &'_ [u8]
) -> Result<Response<'a>, Error>
[src]

pub async fn send_str<'a, '_, '_>(
    &'_ mut self,
    body: &'_ str
) -> Result<Response<'a>, Error>
[src]

pub async fn send_http<'a, '_, '_, R>(
    &'_ mut self,
    body: &'_ mut R
) -> Result<Response<'a>, Error> where
    R: Read + Send + Unpin
[src]

pub async fn send_https<'a, '_, '_, R>(
    &'_ mut self,
    body: &'_ mut R
) -> Result<Response<'a>, Error> where
    R: Read + Send + Unpin
[src]

Trait Implementations

impl Debug for Request[src]

impl Display for Request[src]

impl From<Request> for String[src]

Auto Trait Implementations

impl RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl UnwindSafe for Request

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> ToString for T where
    T: Display + ?Sized
[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.