Package-level declarations
Types
Link copied to clipboard
class BearerRestClient(json: Json = Json, baseUrl: String = "", client: HttpClient = HttpClientFactory.create(negotiation = { json(json) }), mapper: RestErrorMapper<RestClientErrorSpec, *> = RestErrorMapper.default()) : RestClient
A RestClient that sends Authorization: Bearer <token> on every call made with a token.
Link copied to clipboard
open class RestClient(json: Json = Json, baseUrl: String = "", client: HttpClient = HttpClientFactory.create(negotiation = { json(json) }), mapper: RestErrorMapper<RestClientErrorSpec, *> = RestErrorMapper.default()) : TypedRestClient<RestClientErrorSpec>
A TypedRestClient that fails with RestClientErrorSpec. By default it talks to a ktkit service: RestErrorMapper.default reads every error body as an ApiError.
Link copied to clipboard
class XRealNameRestClient(json: Json = Json, baseUrl: String = "", client: HttpClient = HttpClientFactory.create(negotiation = { json(json) }), mapper: RestErrorMapper<RestClientErrorSpec, *> = RestErrorMapper.default()) : RestClient
A RestClient that forwards the caller's Principal in the x-real-name header, for ktkit services behind a gateway.