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