Skip to main content

srv_post_json

Function srv_post_json 

Source
pub(crate) async fn srv_post_json(
    client: &Client,
    url: &str,
    auth_key: &str,
    body: &Value,
    what: &str,
) -> Result<Value>
Expand description

POST a JSON body to a srv route and return its JSON answer, failures described as srv_get_json describes them.