Skip to content

BearerAuth

[Source]

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>").

primitive val BearerAuth

Constructors

create

[Source]

new val create()
: BearerAuth val^

Returns


Public Functions

apply

[Source]

Build the Bearer auth header from token.

fun box apply(
  token: String val)
: (String val , String val)

Parameters

Returns


eq

[Source]

fun box eq(
  that: BearerAuth val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: BearerAuth val)
: Bool val

Parameters

Returns