NaviServer - programmable web server

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_parseheader(n) 4.99.20 naviserver "NaviServer Built-in Commands"

Name

ns_parseheader - Parse HTTP header

Table Of Contents

Synopsis

Description

This function parses a single HTTP header line into a predefined ns_set specified by set.

Optional argument disposition can be one of the following

When no disposition is provided, it defaults to tolower

COMMANDS

ns_parseheader set header ?disposition?

EXAMPLES

 set reply [ns_set create reply]
 ns_parseheader $reply "Connection: Upgrade"
 
 #
 # Return the content of the ns_set in form of a dict
 #
 ns_set array $reply
 % connection Upgrade

See Also

ns_parsefieldvalue, ns_parseurl, nsd

Keywords

NaviServer, global built-in, parse