Module request

Module request 

Source

Functionsยง

get_form_values
Parse URL query + x-www-form-urlencoded body into map, supporting [] / comma array syntax. Parse query and form (application/x-www-form-urlencoded), supports []/comma arrays.
get_remote_addr
Get remote addr, prefer X-Forwarded-For then extension-provided peer addr. Get remote addr: prefer X-Forwarded-For, then peer addr in extensions.
parse
Merge path + form + json into one struct.
parse_form
Parse form (query + urlencoded body) into T. Parse form (query + urlencoded body) into T.
parse_header
Parse header attributes like a=1; b=2 into map. Parse header attributes like a=1; b=2.
parse_json_body
Parse application/json body with size limit, return None if not json. Parse JSON body with size limit; return None if not JSON.
parse_path
Parse path params (from extensions) into T. Parse path params (from extensions) into T.
read_json
Read JSON body into T and keep body available by re-inserting bytes. Read JSON body as T, and put bytes back so the body stays readable.