Skip to main content

PoHttpServerRequest

An incoming HTTP server request.

Properties​

body: string | nil​

v0.42.0

Set only for non-form content types.

form: {kind = "urlencoded" | "multipart", ok, fields, files, body?}​

headers: table[string]string​

v0.42.0

A table of key-value pairs representing the incoming HTTP headers.

method: string​

v0.42.0

Lower-case HTTP method.

path: string​

v0.42.0

Path without the query.

query: string​

v0.42.0

The raw query string without ?.

url: string​

v0.42.0

Same as path.