Skip to content

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

EntryDescription
MetadataOptions for an HTTP request:
ResponseAn 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.Metadata

Response

An HTTP response, containing status, headers, and body.

luau
type Response = client.Response