Function async_google_apis_common::do_request [−][src]
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.