[][src]Function async_google_apis_common::do_request

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

The Content-Type header is set automatically to application/json.