Copyright © 2007 Mochi Media, Inc.
Authors: Bob Ippolito (bob@mochimedia.com).
abstract datatype: headers()
key() = atom() | binary() | string()
value() = atom() | binary() | string() | integer()
default/3 | Insert the pair into the headers if it does not already exist. |
default_from_list/2 | Insert pairs into the headers for keys that do not already exist. |
empty/0 | Create an empty headers structure. |
enter/3 | Insert the pair into the headers, replacing any pre-existing key. |
enter_from_list/2 | Insert pairs into the headers, replace any values for existing keys. |
from_list/1 | Construct a headers() from the given list. |
get_primary_value/2 | Return the value of the given header up to the first semicolon using a case insensitive search. |
get_value/2 | Return the value of the given header using a case insensitive search. |
insert/3 | Insert the pair into the headers, merging with any pre-existing key. |
lookup/2 | Return the case preserved key and value for the given header using a case insensitive search. |
make/1 | Construct a headers() from the given list. |
test/0 | Run tests for this module. |
to_list/1 | Return the contents of the headers. |
Insert the pair into the headers if it does not already exist.
Insert pairs into the headers for keys that do not already exist.
empty() -> headers()
Create an empty headers structure.
Insert the pair into the headers, replacing any pre-existing key.
Insert pairs into the headers, replace any values for existing keys.
Construct a headers() from the given list.
Return the value of the given header up to the first semicolon using a case insensitive search. undefined will be returned for keys that are not present.
Return the value of the given header using a case insensitive search. undefined will be returned for keys that are not present.
Insert the pair into the headers, merging with any pre-existing key. A merge is done with Value = V0 ++ ", " ++ V1.
Return the case preserved key and value for the given header using a case insensitive search. none will be returned for keys that are not present.
Construct a headers() from the given list.
test() -> ok
Run tests for this module.
Return the contents of the headers. The keys will be the exact key that was first inserted (e.g. may be an atom or binary, case is preserved).
Generated by EDoc, Aug 8 2008, 22:08:39.