Skip to content

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

@Jujumba

Description

@Jujumba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions