Endpoint

data class Endpoint

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: Url, headers: ValuesMap<String>? = null)

Properties

Link copied to clipboard
val headers: ValuesMap<String>? = null

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

Link copied to clipboard
val uri: Url

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.

Functions

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