CorsHandler

class CorsHandler(pattern: String, cors: CorsCallback) : HttpHandler

Constructors

Link copied to clipboard
constructor(cors: CorsCallback)
constructor(pattern: String = "*", allowedOrigin: String = "*", allowedMethods: Set<HttpMethod> = ALL, allowedHeaders: Set<String> = emptySet(), exposedHeaders: Set<String> = emptySet(), supportCredentials: Boolean = true, preFlightStatus: HttpStatus = NO_CONTENT_204, preFlightMaxAge: Long = 0)
constructor(pattern: String, cors: CorsCallback)

Properties

Link copied to clipboard
open override val callback: (Context<HttpCall>) -> Context<HttpCall>
Link copied to clipboard
open override val handlerPredicate: HttpPredicate
Link copied to clipboard
open override val predicate: (Context<HttpCall>) -> Boolean

Functions

Link copied to clipboard
open override fun addPrefix(prefix: String): HttpHandler
Link copied to clipboard
open override fun byMethod(): Map<HttpMethod, HttpHandler>
Link copied to clipboard
open override fun filter(method: HttpMethod): HttpHandler
Link copied to clipboard
open override fun process(context: Context<HttpCall>): Context<HttpCall>
open override fun process(request: HttpRequestPort): HttpContext
Link copied to clipboard
open override fun processHttp(context: HttpContext): HttpContext