Skip to main content

post_json

Function post_json 

Source
pub async fn post_json<T: Serialize>(
    url: impl Into<String>,
    json: &T,
) -> Result<Response>
Expand description

Convenience function for making a POST request with JSON body