Package-level declarations

Package for HTTP server related stuff.

Types

Link copied to clipboard
typealias ExchangeHandler = (request: ServerRequest) -> ServerResponse

A server-side HTTP exchange handler.

Link copied to clipboard
fun interface RequestPredicate

Represents a function that evaluates on a given ServerRequest.

Link copied to clipboard

Implementations of RequestPredicate that implement various useful request matching operations, such as matching based on path, HTTP method, etc.

Link copied to clipboard
object Router

Provides access to route functions and builder.

Link copied to clipboard
class RouterDsl

Dsl for configuring a router.

Link copied to clipboard
typealias RouterHandler = (request: ServerRequest) -> ExchangeHandler?

A server-side HTTP router handler.

Link copied to clipboard
interface ServerRequest

A server-side request, as used as parameter by ServerHandler and RouterHandler.

Link copied to clipboard
interface ServerResponse

A server-side response, as returned by ServerHandler.