Package-level declarations

Types

Link copied to clipboard
open class AbstractEndpoint(paths: List<String> = listOf("/"))

Represents an endpoint to use to implement routing in an object-orientated way.

Link copied to clipboard
annotation class Delete(val path: String = "/")

Represents a DELETE request that can be accessed.

Link copied to clipboard
annotation class Get(val path: String = "/")

Represents a GET request that can be accessed.

Link copied to clipboard
annotation class Head(val path: String = "/")

Represents a HEAD request that can be accessed.

Link copied to clipboard
annotation class Http(val path: String = "/", val methods: Array<String> = [])

Represents a generic HTTP annotation, used for multiple methods put together into one method.

Link copied to clipboard
annotation class Patch(val path: String = "/")

Represents a PATCH request that can be accessed.

Link copied to clipboard
annotation class Post(val path: String = "/")

Represents a POST request that can be accessed.

Link copied to clipboard
annotation class Put(val path: String = "/")

Represents a PUT request that can be accessed.

Link copied to clipboard
annotation class WebSocket(val path: String = "/")

Represents an endpoint that can be represented as a WebSocket connection.