post_json

Function post_json 

Source
pub fn post_json<T: Serialize>(
    url: impl Into<String>,
    body: &T,
) -> Result<HttpResponse, HttpError>
Expand description

Convenience function for simple POST requests with JSON body.