ae.net.ietf.headers

HTTP / mail / etc. headers

Members

Functions

decodeTokenHeader
TokenHeader decodeTokenHeader(string s)

Decodes headers of the form "main-value; param1=value1; param2=value2"

normalizeHeaderName
string normalizeHeaderName(string header)

Attempts to normalize the capitalization of a header name to a likely form. This involves capitalizing all words, plus rules to uppercase common acronyms used in header names, such as "IP" and "ETag".

Structs

Headers
struct Headers

AA-like structure for storing headers, allowing for case insensitivity and multiple values per key.

TokenHeader
struct TokenHeader

Decodes headers of the form "main-value; param1=value1; param2=value2"

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <ae@cy.md>