Endpoint

data class Endpoint(val uri: <Error class: unknown class>, val headers: <Error class: unknown class><String>? = null, val attributes: <Error class: unknown class> = emptyAttributes())

Represents the endpoint a service client should make API operation calls to.

The SDK will automatically resolve these endpoints per API client using an internal resolver.

Constructors

Link copied to clipboard
constructor(uri: String)
constructor(uri: <Error class: unknown class>, headers: <Error class: unknown class><String>? = null)
constructor(uri: <Error class: unknown class>, headers: <Error class: unknown class><String>? = null, attributes: <Error class: unknown class> = emptyAttributes())

Properties

Link copied to clipboard
val attributes: <Error class: unknown class>

A grab-bag property map of endpoint attributes. The values here are only set when an endpoint is returned from evaluating a ruleset.

Link copied to clipboard
val headers: <Error class: unknown class><String>? = null

A map of additional HTTP headers to be set when making calls against this endpoint.

Link copied to clipboard
val uri: <Error class: unknown class>

The base URL endpoint clients will use to make API calls to e.g. "api.myservice.com". NOTE: Only scheme, port, host path, and parameters are valid. Other URL elements are ignored.

Inherited properties

Link copied to clipboard
val Endpoint.authOptions: List<<Error class: unknown class>>

Sugar extension to pull the auth option(s) out of the endpoint attributes.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int