Import with #import "std/net_http_linux".

HttpUrl :: (url: string) -> bool
PostJson :: (url: string, body: string, output: []u8) -> CaptureResult

Native HTTPS JSON transport. curl owns TLS and HTTP framing; Ziran owns the request arguments and caller-provided response buffer.

PostJsonCapped :: (url: string, body: string, maximum: s64, output: []u8) -> CaptureResult

Native HTTPS JSON transport with an explicit response limit.

Source ↗ · All modules