[][src]Function async_google_apis_common::do_request_with_headers

pub async fn do_request_with_headers<Req: Serialize + Debug, Resp: DeserializeOwned + Clone + Default, '_, '_, '_, '_>(
    cl: &'_ TlsClient,
    path: &'_ str,
    headers: &'_ [(HeaderName, String)],
    http_method: &'_ str,
    rq: Option<Req>
) -> Result<(Resp, HeaderMap)>

The Content-Type header is set automatically to application/json. Also returns response headers.