BasicAuth¶
Construct an HTTP Basic Authentication header value.
Returns a (name, value) tuple suitable for passing directly to
Headers.set() or the request builder's header() method:
("authorization", "Basic <base64(username:password)>").
Constructors¶
create¶
Returns¶
- BasicAuth val^
Public Functions¶
apply¶
Build the Basic auth header from username and password.
The credentials are encoded as base64(username:password) per RFC 7617.
Parameters¶
Returns¶
eq¶
Parameters¶
- that: BasicAuth val
Returns¶
- Bool val
ne¶
Parameters¶
- that: BasicAuth val
Returns¶
- Bool val