On Wednesday, 22 August 2012 at 20:34:12 UTC, Sönke Ludwig wrote:

Am 01.01.1970 01:00, schrieb Justin Whear:

I'd like to use the UrlRouter as demonstrated in the various
examples.
However, the delegates it maps urls to only take an
HttpServerRequest and
an HttpServerResponse and I can't find any way to get at the
request's
HTTP headers. Specifically, I'd like to check the "Accept"
header and
render different versions of a template accordingly.
Is there a reason headers are not included in the
HttpServerRequest class?

Justin

It's in the base class: HttpRequest.headers
StrMapCI btw. behaves just like a normal string[string] map but
the key is case insensitive.

(I just put a new item on my TODO list to add inherited members
to the API docs of a derived class)

Awesome, I figured I had to be missing something.