Capy-Bearer Documentation

split_http_headers

lib call

Capy

function split_http_headers(value : string) dval

Description

Use split_http_headers to parse an HTTP header block.

Return Values

Map-shaped dval.

Example

Capy

var headers := split_http_headers("Host: example.test\r\n")
print(headers["HTTP_HOST"], "\n")