headers icon indicating copy to clipboard operation
headers copied to clipboard

Add `Authorization::<Bearer>::as_str` to get full value of an auth header

Open Jujumba opened this issue 8 months ago • 0 comments

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.

Jujumba avatar Apr 18 '25 12:04 Jujumba