def post.json

bend-kit-http@0.38.2.0 · http.bend:4438

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-json@0.7.0.0/json.bend as Json

4438# POST v as compact JSON, with content-type: application/json.
4439def post.json(url: String, v: Json.Val) -> IO(Result<&1, &1, Err, Res>):
4440  fetch("POST", url, set(empty(), "content-type", "application/json"), Json.encode.bytes(v))

Uses (10)

Used by (0)

No other definition uses this definition.