Skip to main content

post

Function post 

Source
async fn post(
    base: &str,
    path: &str,
    token: &str,
    http: &Client,
    agent_id: Option<&str>,
    body: &Value,
) -> Option<(u16, Value)>
Expand description

POST body to path, with X-Agent-ID: agent_id when there is one; (status, json body) or None on transport error.