get_apppassword_bytes_with_headers

Function get_apppassword_bytes_with_headers 

Source
pub async fn get_apppassword_bytes_with_headers(
    http_client: &Client,
    app_auth: &AppPasswordAuth,
    url: &str,
    additional_headers: &HeaderMap,
) -> Result<Bytes>
Expand description

Performs an app password-authenticated HTTP GET request and returns the response as bytes.

§Arguments

  • http_client - The HTTP client to use for the request
  • app_auth - App password authentication credentials
  • url - The URL to request
  • additional_headers - Additional HTTP headers to include in the request

§Returns

The response body as bytes

§Errors

Returns ClientError::HttpRequestFailed if the HTTP request fails, or an error if streaming the response bytes fails.