Tanguv0.35.0
Web & HTTP1 exports
Raw Markdown

/http/client/json

Convenience helpers for sending JSON HTTP requests and decoding structured responses (post-json).

(use /http/client/json)

Functions & symbols#

post-json#

function
(post-json client url body headers)

Encodes `body` as JSON, sets `Content-Type: application/json`, and sends an HTTP POST request.

ParameterTypeOptionalDescription
clientAnyrequired—
urlAnyrequired—
bodyAnyrequired—
headersAnyrequired—
Returns:Any