headers
headers copied to clipboard
Add `Authorization::<Bearer>::as_str` to get full value of an auth header
This API would be useful when full value of the header is needed (to log it somewhere, for example). Currently, there's only Authorization::<Bearer>::token which doesn't specify that the token is Bearer.
Sure, this is easy to do by concating "Bearer " to the token, but that requires an unnecessary allocation.