ContractRoutingHttpHandler

data class ContractRoutingHttpHandler(renderer: ContractRenderer, security: Security?, tags: Set<Tag>, descriptionSecurity: Security?, descriptionPath: String, preFlightExtraction: PreFlightExtraction, routes: List<ContractRoute> = emptyList(), rootAsString: String = "", preSecurityFilter: Filter = Filter.NoOp, postSecurityFilter: Filter = Filter.NoOp, includeDescriptionRoute: Boolean = false, webhooks: Map<String, List<WebCallback>> = emptyMap()) : RoutingHttpHandler

Constructors

Link copied to clipboard
constructor(renderer: ContractRenderer, security: Security?, tags: Set<Tag>, descriptionSecurity: Security?, descriptionPath: String, preFlightExtraction: PreFlightExtraction, routes: List<ContractRoute> = emptyList(), rootAsString: String = "", preSecurityFilter: Filter = Filter.NoOp, postSecurityFilter: Filter = Filter.NoOp, includeDescriptionRoute: Boolean = false, webhooks: Map<String, List<WebCallback>> = emptyMap())

Properties

Link copied to clipboard
open override val description: RouterDescription

Functions

Link copied to clipboard
open operator override fun invoke(request: Request): Response
Link copied to clipboard
open override fun match(request: Request): RouterMatch
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard

NOTE: By default, filters for Contracts are applied before the Security filter. Use withPostSecurityFilter() to achieve population of filters after security.