HttpServerPredicate

data class HttpServerPredicate(    val methods: Set<HttpMethod> = emptySet(),     val pathPattern: PathPattern = LiteralPathPattern(),     val exception: KClass<out Exception>? = null,     val status: HttpStatus? = null) : Function1<Context<HttpServerCall>, Boolean>

Constructors

Link copied to clipboard
fun HttpServerPredicate(    methods: Set<HttpMethod> = emptySet(),     pattern: String = "",     exception: KClass<out Exception>? = null,     status: HttpStatus? = null,     prefix: Boolean = false)
Link copied to clipboard
fun HttpServerPredicate(    methods: Set<HttpMethod> = emptySet(),     pathPattern: PathPattern = LiteralPathPattern(),     exception: KClass<out Exception>? = null,     status: HttpStatus? = null)

Functions

Link copied to clipboard
fun addPrefix(prefix: String): HttpServerPredicate
Link copied to clipboard
fun clearMethods(): HttpServerPredicate
Link copied to clipboard
fun describe(): String
Link copied to clipboard
open operator override fun invoke(context: Context<HttpServerCall>): Boolean

Properties

Link copied to clipboard
val exception: KClass<out Exception>? = null
Link copied to clipboard
val methods: Set<HttpMethod>
Link copied to clipboard
val pathPattern: PathPattern
Link copied to clipboard
val predicate: Predicate<HttpServerCall>
Link copied to clipboard
val status: HttpStatus? = null