ae.net.ietf.headerparse

Header parsing

Members

Functions

parseHeaders
bool parseHeaders(DataVec data, Headers headers)

Check if the passed data contains a full set of headers (that is, contain a \r\n\r\n sequence), and if so - parses them, removes them from data (so that it contains only the message body), and returns true; otherwise returns false. The header string data is duplicated to the managed heap. ditto

parseHeaders
bool parseHeaders(DataVec data, string firstLine, Headers headers)

As above, but treat the first line differently, and return it in firstLine.

parseHeaders
Headers parseHeaders(string headerData)

Parse headers from the given string.

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>