Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Jujumba opened this issue Apr 18, 2025 · 0 comments
Open

Comments

@Jujumba
Copy link

Jujumba commented Apr 18, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant