pub(crate) async fn request<'a>(
        &self,
        method: Method,
        uri: &str,
        headers: impl IntoIterator<Item = &'a (&'a str, &'a str)>,
    ) -> reqwest::Result<Response> {
        let response = headers
            .into_iter()
            .fold(self.inner.request(method, uri), |request, (k, v)| {
                request.header(*k, *v)
            })
            .send()
            .await?;

        Ok(response)
    }
/// Executes an HTTP equest and returns the response.
Executes an HTTP equest and returns the response.
Executes an HTTP equest and returns the response .
pub(crate) async fn request<'a>(
        &self,
        method: Method,
        uri: &str,
        headers: impl IntoIterator<Item = &'a (&'a str, &'a str)>,
    ) -> reqwest::Result<Response> {
        let response = headers
            .into_iter()
            .fold(self.inner.request(method, uri), |request, (k, v)| {
                request.header(*k, *v)
            })
            .send()
            .await?;
        Ok(response)
    }
pub ( crate ) async fn request < ' a > ( & self , method : Method , uri : & str , headers : impl IntoIterator < Item = & ' a ( & ' a str , & ' a str ) > , ) -> reqwest :: Result < Response > { let response = headers . into_iter ( ) . fold ( self . inner . request ( method , uri ) , | request , ( k , v ) | { request . header ( * k , * v ) } ) . send ( ) . await ? ; Ok ( response ) }
Executes an HTTP equest and returns the response.
Executes an HTTP equest and returns the response .
&self
method
Method
uri
&str
headers
impl IntoIterator<Item = &'a (&'a str, &'a str)>
&self
method
Method
uri
&str
headers
impl IntoIterator<Item = &'a (&'a str, &'a str)>