|
|
|
NAME
Caudium.parse_headers()
SYNOPSIS mapping Caudium.parse_headers(string headers); DESCRIPTION
Formats all headers into a mapping.
string headers
The headers string to get parsed..
RETURNS
The headers in a mapping.
EXAMPLE Pike v7.4 release 1 running Hilfe v3.5 (Incremental Pike Frontend) > Caudium.parse_headers("User-Agent: Mozilla"); (1) Result: ([ /* 1 element */ "user-agent":"Mozilla" ]) > Caudium.parse_headers("Host: www.plonk.com:80"); (2) Result: ([ /* 1 element */ "host":"www.plonk.com:80" ]) > Caudium.parse_headers("User-Agent: Mozilla\r\nFoo: pof\r\nhost: ponk\r\n\r\n"); (3) Result: ([ /* 3 elements */ "foo":"pof", "host":"ponk", "user-agent":"Mozilla" ]) |
|
Copyright © 2000 - 2005
The Caudium Group
All Rights Reserved. Hosting by Kazar.
|
|