Http

data class Http(val scheme: String, val bearerFormat: String? = null, val description: String? = null) : AuthScheme

An HTTP authentication scheme, such as basic or bearer.

Constructors

Link copied to clipboard
constructor(scheme: String, bearerFormat: String? = null, description: String? = null)

Types

Link copied to clipboard
class Builder

Fluent builder for Http, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A hint about the bearer token's format, such as JWT.

Link copied to clipboard

A description of the scheme.

Link copied to clipboard

The Authorization header scheme (RFC 7235).

Link copied to clipboard
open override val type: String

The scheme's OpenAPI type, such as apiKey or http.

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.