API: Make HTTP headers case insensitive.
Move header extraction to the request class.