HTTPHeaders

Members

Aliases

LAMBDA
alias LAMBDA = bool delegate(string value)

Process the ordered list of values for the given header name: for each value, the function/functor/lambda-expression given as the second parameter will be executed. It should take one const string & parameter and return bool (false to keep processing, true to stop it). Example use: hdrs.forEachValueOfHeader("someheader", [&] (const string& val) { std::cout << val; return false; }); This method returns true if processing was stopped (by func returning true), and false otherwise.

Functions

combine
string combine(string separator = ", ")

combine all the value for this header into a string

remove
bool remove(string name)

Remove all instances of the given header, returning true if anything was removed and false if this header didn't exist in our set.

size
size_t size()

Get the total number of headers.

Meta