Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
open class CacheControlHeaderPart(val name: String, val value: Duration)
Link copied to clipboard

Useful filters for applying Cache-Controls to request/responses

Link copied to clipboard
Link copied to clipboard
data class CompressionResult(val body: Body, val contentEncoding: String?)
Link copied to clipboard
data class CorsPolicy(val originPolicy: OriginPolicy, val headers: List<String>, val methods: List<Method>, val credentials: Boolean = false, val exposedHeaders: List<String> = emptyList(), val maxAge: Int? = null)
Link copied to clipboard
Link copied to clipboard
data class DefaultCacheTimings(val maxAge: MaxAgeTtl, val staleIfErrorTtl: StaleIfErrorTtl, val staleWhenRevalidateTtl: StaleWhenRevalidateTtl)
Link copied to clipboard
Link copied to clipboard
sealed class GzipCompressionMode

GzipCompressionMode represents a choice between working lazily with streams when gzipping or eagerly storing the body contents in memory.

Link copied to clipboard
Link copied to clipboard

For creating custom origin policy for allowing CORS

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class SamplingDecision(val value: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class TraceId(val value: String)
Link copied to clipboard
Link copied to clipboard
data class ZipkinTraces(val traceId: TraceId, val spanId: TraceId, val parentSpanId: TraceId?, val samplingDecision: SamplingDecision = SAMPLE)
Link copied to clipboard

Properties

Link copied to clipboard
const val FLASH_COOKIE: String

Functions

Link copied to clipboard

Allows all origins for CORS

Link copied to clipboard
fun OriginPolicy.Companion.AnyOf(vararg allowedOrigins: String): OriginPolicy

Allows a given list of origins for CORS

Link copied to clipboard
fun HttpHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): (request: Request) -> Response
fun RoutingHttpHandler.debug(out: PrintStream = System.out, debugStream: Boolean = false): RoutingHttpHandler
Link copied to clipboard

Use this to wrap a block of code and ensure the current span exists at the end.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Body.gzipped(compressionLevel: Int = DEFAULT_COMPRESSION): CompressionResult
Link copied to clipboard
fun Body.gzippedStream(compressionLevel: Int = DEFAULT_COMPRESSION): CompressionResult
Link copied to clipboard

Use this to wrap a block of code in a new span. It rolls the span and sets it for the duration of the passed block.

Link copied to clipboard
Link copied to clipboard

Allows a given single origin for CORS

Link copied to clipboard

Allows origin(s) matching a Regex for CORS

Link copied to clipboard
Link copied to clipboard
fun Filter.thenIf(predicate: RequestPredicate, filter: Filter): Filter
Link copied to clipboard
fun Filter.thenIfNot(predicate: RequestPredicate, filter: Filter): Filter
Link copied to clipboard