Skip to main content

post_json

Function post_json 

Source
pub fn post_json(
    url: &str,
    headers: &[(&str, &str)],
    body: &Value,
) -> Result<HttpResponse, HttpError>
Expand description

POST body as JSON and read the whole response.

For the one API here that takes its query as a document rather than as a URL — CurseForge’s batched file lookup. Like get, a status is data.