Home

hexagon_core / com.hexagonkt.http

Package com.hexagonkt.http

HTTP code shared between clients and servers and independent of third party libraries.

Types

Name Summary
Method Enum for the supported HTTP methods.enum class Method
Path A path definition. It parses path patterns and extract values for parameters.data class Path
Protocol Enum for the supported HTTP methods.enum class Protocol
Route data class Route
SslSettings data class SslSettings

Extensions for External Classes

Name Summary
kotlin.String

Properties

Name Summary
ALL Set containing all HTTP methods.val ALL:LinkedHashSet<Method>

Functions

Name Summary
any Shortcut to create a route for a filter (with all methods).fun any(path:String= "/"):Route
delete Shortcut to create a DELETE route.fun delete(path:String= "/"):Route
get Shortcut to create a GET route.fun get(path:String= "/"):Route
head Shortcut to create a HEAD route.fun head(path:String= "/"):Route
httpDate fun httpDate(date: LocalDateTime = LocalDateTime.now()):String
options Shortcut to create a OPTIONS route.fun options(path:String= "/"):Route
parseQueryParameters fun parseQueryParameters(query:String):Map<String,List<String>>
patch Shortcut to create a PATCH route.fun patch(path:String= "/"):Route
post Shortcut to create a POST route.fun post(path:String= "/"):Route
put Shortcut to create a PUT route.fun put(path:String= "/"):Route
tracer Shortcut to create a TRACE route.fun tracer(path:String= "/"):Route