zng_task::http

Function post

source
pub async fn post(
    uri: impl TryUri,
    body: impl TryBody,
) -> Result<Response, Error>
Expand description

Send a POST request to the uri with a given request body.

The default_client is used to send the request.