Http
data class Http(val scheme: String, val credentials: AuthCredential.Http.Credentials, val additionalHeaders: Map<String, Secret>? = null) : AuthCredential
An HTTP authentication credential, usually sent in the Authorization header.
Constructors
Types
Link copied to clipboard
data class Credentials(val username: String? = null, val password: Secret? = null, val token: Secret? = null)
What an HTTP credential authenticates with: a user name and password, or a token.
Properties
Functions
Link copied to clipboard
Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.