Add basic authorization support to the `Request` class (see #6062)