classHeaderMap[B >: String] extends Map[String, B] with MapLike[String, B, HeaderMap[B]]
A set of HTTP headers identified by case insensitive keys
A set of HTTP headers identified by case insensitive keys
A Map[CaseInsensitiveString, String] would conform to the strict Map specification
but it would make the API ugly, forcing the explicit usage of CaseInsensitiveString
instead of string.
That's why we have the HeaderMap class to represent HTTP headers in a map like
interface which is nice to use. It is however not *exactly* a map because
different keys can map to the same value if they are case-insensitive equivalent.
B
Required for MapLike implementation. Should always be set to String.
A set of HTTP headers identified by case insensitive keys
A Map[CaseInsensitiveString, String] would conform to the strict Map specification but it would make the API ugly, forcing the explicit usage of CaseInsensitiveString instead of string.
That's why we have the HeaderMap class to represent HTTP headers in a map like interface which is nice to use. It is however not *exactly* a map because different keys can map to the same value if they are case-insensitive equivalent.
Required for MapLike implementation. Should always be set to String.