cleanup, docs
This commit is contained in:
@@ -7,3 +7,9 @@ DValue http_request(DValue req)
|
||||
Performs a bounded outbound HTTP(S) request using the runtime `curl` binary. Request fields: `method`, `url`, `headers`, `body`, `timeout_ms`, `follow_redirects`.
|
||||
|
||||
Returns `{ status, headers, body, error }`. `headers` is a name/value map. A missing `curl` binary returns a clear `error` string.
|
||||
|
||||
:see
|
||||
>socket
|
||||
|
||||
:example
|
||||
print("http_request is resource-bound; configure the service or connection, then call it in request code.\n");
|
||||
|
||||
Reference in New Issue
Block a user