Skip to main content

send_json

Function send_json 

Source
pub(crate) fn send_json(req: Request, body: &Value) -> Result<Response, Error>
Expand description

POST a JSON body. The result goes straight into call_logged, so ureq::Error stays unboxed.