Skip to main content

Module request

Module request 

Source
Expand description

Read the inbound HTTP request being handled by the flare.

All four accessors are cheap - the host stores the request bytes once when the flare is invoked, and these helpers copy slices out of the per-invocation bump arena.

Functionsยง

body
Read the request body as raw bytes.
header
Look up a request header by (case-insensitive) name.
method
HTTP method of the inbound request, e.g. "GET" or "POST".
url
Full request URL, including path and query string.