10 lines
355 B
Plaintext
10 lines
355 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.
|