BearerAuth¶
Construct an HTTP Bearer token authentication header value.
Returns a (name, value) tuple suitable for passing directly to
Headers.set() or the request builder's header() method:
("authorization", "Bearer <token>").
Constructors¶
create¶
Returns¶
- BearerAuth val^
Public Functions¶
apply¶
Build the Bearer auth header from token.
Parameters¶
- token: String val
Returns¶
eq¶
Parameters¶
- that: BearerAuth val
Returns¶
- Bool val
ne¶
Parameters¶
- that: BearerAuth val
Returns¶
- Bool val