parseRFC5322Header

Parses an internet header according to RFC5322 (with RFC822 compatibility).

void
parseRFC5322Header
(
InputStream
)
(
InputStream input
,,
size_t max_line_length = 1000
,
IAllocator alloc = vibeThreadAllocator()
,
bool rfc822_compatible = true
)
if (
isInputStream!InputStream
)

Parameters

input InputStream

Input stream from which the header is parsed

dst InetHeaderMap

Destination map to write into

max_line_length size_t

The maximum allowed length of a single line

alloc IAllocator

Custom allocator to use for allocating strings

rfc822_compatible bool

Flag indicating that duplicate fields should be merged using a comma

Meta