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.
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>::tokenwhich doesn't specify that the token isBearer.Sure, this is easy to do by concating
"Bearer "to the token, but that requires an unnecessary allocation.