isahc

Function post

Source
pub fn post<U, B>(uri: U, body: B) -> Result<Response<Body>, Error>
where Uri: TryFrom<U>, <Uri as TryFrom<U>>::Error: Into<Error>, B: Into<Body>,
Expand description

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

The request is executed using a shared HttpClient instance. See HttpClient::post for details.