Support for basic auth

Reverse `r` and `res` ;)