Fixed http_auth when authorization is not provided in header

If no authorization was present in the header, the _check_http function was trying to access the username and password attributes on a dict (AttributeError exception was raised). 
Changed the dict to be a named tuple.