pub async fn raw(
        &self,
        method: reqwest::Method,
        path: &str,
        body: Option<impl Into<reqwest::Body>>,
    ) -> anyhow::Result<reqwest::Response> {
        let req = self.client.request(method, self.base_url.join(path)?);
        let req = match body {
            Some(b) => req.body(b),
            None => req,
        };
        req.send().await.map_err(|e| e.into())
    }
/// Performs a raw request using the underlying HTTP client and returns the raw response. The
/// path is just the path part of your URL. It will be joined with the configured base URL for
/// the client.
// TODO: Right now this is mainly used if you want to HEAD any of the endpoints, as a HEAD
// requests is used to get the headers and status code, which is pretty much a raw response
// anyway. But should we make those their own methods instead?
Performs a raw request using the underlying HTTP client and returns the raw response. The
path is just the path part of your URL. It will be joined with the configured base URL for
the client.
TODO: Right now this is mainly used if you want to HEAD any of the endpoints, as a HEAD
requests is used to get the headers and status code, which is pretty much a raw response
anyway.
Performs a raw request using the underlying HTTP client and returns the raw response . The path is just the path part of your URL . It will be joined with the configured base URL for the client . TODO : Right now this is mainly used if you want to HEAD any of the endpoints as a HEAD requests is used to get the headers and status code which is pretty much a raw response anyway .
pub async fn raw(
        &self,
        method: reqwest::Method,
        path: &str,
        body: Option<impl Into<reqwest::Body>>,
    ) -> anyhow::Result<reqwest::Response> {
        let req = self.client.request(method, self.base_url.join(path)?);
        let req = match body {
            Some(b) => req.body(b),
            None => req,
        };
        req.send().await.map_err(|e| e.into())
    }
pub async fn raw ( & self , method : reqwest :: Method , path : & str , body : Option < impl Into < reqwest :: Body > > , ) -> anyhow :: Result < reqwest :: Response > { let req = self . client . request ( method , self . base_url . join ( path ) ? ) ; let req = match body { Some ( b ) => req . body ( b ) , None => req , } ; req . send ( ) . await . map_err ( | e | e . into ( ) ) }
Performs a raw request using the underlying HTTP client and returns the raw response.
Performs a raw request using the underlying HTTP client and returns the raw response .
&self
method
reqwest::Method
path
&str
body
Option<impl Into<reqwest::Body>>
&self
method
reqwest::Method
path
&str
body
Option<impl Into<reqwest::Body>>