net
luau
local net = require("@std/net")WARNING
These APIs are still open to future evolution. In new major versions, they may change in backwards incompatible ways.
Summary
| Entry | Description |
|---|---|
| Metadata | Options for an HTTP request: |
| Response | An HTTP response, containing status, headers, and body. |
Types
Metadata
Options for an HTTP request:
method: The HTTP method (e.g."GET","POST"). Defaults to"GET".body: The request body as a string. If omitted, no body is sent.headers: A table of HTTP headers to include in the request.
luau
type Metadata = client.MetadataResponse
An HTTP response, containing status, headers, and body.
luau
type Response = client.Response