vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function parseRFC5322Header

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

void parseRFC5322Header(InputStream) (
  InputStream input,
  ref InetHeaderMap dst,
  size_t max_line_length = 1000
)
if (isInputStream!InputStream);

void parseRFC5322Header(InputStream, Allocator) (
  InputStream input,
  ref InetHeaderMap dst,
  size_t max_line_length,
  Allocator alloc,
  bool rfc822_compatible = true
)
if (isInputStream!InputStream);

Parameters

NameDescription
input Input stream from which the header is parsed
dst Destination map to write into
max_line_length The maximum allowed length of a single line
alloc Custom allocator to use for allocating strings
rfc822_compatible Flag indicating that duplicate fields should be merged using a comma
Authors

Sönke Ludwig

Copyright

© 2012-2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.