PathHandler

data class PathHandler(val serverPredicate: HttpServerPredicate, val handlers: List<HttpHandler>) : HttpHandler, Handler<HttpServerCall>

Constructors

Link copied to clipboard
fun PathHandler(vararg handlers: HttpHandler)
Link copied to clipboard
fun PathHandler(pattern: String, handlers: List<HttpHandler>)
Link copied to clipboard
fun PathHandler(pattern: String, vararg handlers: HttpHandler)
Link copied to clipboard
fun PathHandler(serverPredicate: HttpServerPredicate, handlers: List<HttpHandler>)

Functions

Link copied to clipboard
open override fun addPrefix(prefix: String): HttpHandler
Link copied to clipboard
Link copied to clipboard
fun describe(): String
Link copied to clipboard
Link copied to clipboard
open override fun process(context: Context<HttpServerCall>): Context<HttpServerCall>
open override fun process(event: HttpServerCall): HttpServerCall
open override fun process(request: HttpServerRequestPort): HttpServerResponse
open fun process(method: HttpMethod = GET, protocol: HttpProtocol = HTTP, host: String = "localhost", port: Int = 80, path: String = "", queryParameters: QueryParameters = QueryParameters(), headers: Headers = Headers(), body: Any = "", parts: List<HttpPart> = emptyList(), formParameters: FormParameters = FormParameters(), cookies: List<Cookie> = emptyList(), contentType: ContentType? = null, certificateChain: List<X509Certificate> = emptyList(), accept: List<ContentType> = emptyList(), contentLength: Long = -1L): HttpServerResponse
Link copied to clipboard

Properties

Link copied to clipboard
open override val callback: Callback<HttpServerCall>
Link copied to clipboard
Link copied to clipboard
open override val predicate: Predicate<HttpServerCall>
Link copied to clipboard