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)>
Expand description
The Content-Type header is set automatically to application/json. Also returns response headers.