Skip to main content

post_json

Function post_json 

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

Convenience function to make a POST request with JSON body