uce/site/doc/pages/http_request.txt
2026-06-16 12:21:31 +00:00

16 lines
490 B
Plaintext

# http_request
```cpp
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");