/// Executes an HTTP request and returns the response body as a string.
Executes an HTTP request and returns the response body as a string.
Executes an HTTP request and returns the response body as a string .
pub(crate) async fn request_and_read_string<'a>(
        &self,
        method: Method,
        uri: &str,
        headers: impl IntoIterator<Item = &'a (&'a str, &'a str)>,
    ) -> reqwest::Result<String> {
        let text = self.request(method, uri, headers).await?.text().await?;
        Ok(text)
    }
pub ( crate ) async fn request_and_read_string < ' a > ( & self , method : Method , uri : & str , headers : impl IntoIterator < Item = & ' a ( & ' a str , & ' a str ) > , ) -> reqwest :: Result < String > { let text = self . request ( method , uri , headers ) . await ? . text ( ) . await ? ; Ok ( text ) }
Executes an HTTP request and returns the response body as a string.
Executes an HTTP request and returns the response body as a string .
&self
method
Method
uri
&str
headers
impl IntoIterator<Item = &'a (&'a str, &'a str)>