Package-level declarations

Types

Link copied to clipboard
class ClientTimeout(message: String, uri: Uri? = null) : RemoteRequestFailed
Link copied to clipboard
class Forbidden(message: String, uri: Uri? = null) : RemoteRequestFailed
Link copied to clipboard
class GatewayTimeout(message: String, uri: Uri? = null) : RemoteRequestFailed
Link copied to clipboard

A K8S server consists of a main application and a health application, running on 2 different ports. This class provides unified start/stop control.

Link copied to clipboard
class NotFound(message: String, uri: Uri? = null) : RemoteRequestFailed
Link copied to clipboard
open class RemoteRequestFailed(val status: Status, message: String, uri: Uri? = null) : RuntimeException

This hierarchy of exceptions should be used to indicate that an upstream remote system has failed with a non-successful status code which caused us to stop processing. They are designed to be used with the Server and Client filters which will allow automatic handling and propagation of erroneous responses from upstream.

Link copied to clipboard
class Unauthorized(message: String, uri: Uri? = null) : RemoteRequestFailed

Functions

Link copied to clipboard
fun HttpHandler.asK8sServer(serverConfig: (port: Int) -> ServerConfig, env: Environment = ENV, healthApp: HttpHandler = Health()): Http4kK8sServer
fun HttpHandler.asK8sServer(serverConfig: (port: Int) -> ServerConfig, port: Int = 8000, healthApp: HttpHandler = Health(), healthPort: Int = 8001): Http4kK8sServer