Headers.opIndex

Gets the value of a header. The key is case insensitive.

struct Headers
pure @safe
string
opIndex
(
string key
)

Examples

headers["Connection"] = "keep-alive";
assert(header["connection"] == "keep-alive");

Meta