Endpoint
An HttpEndpoint that may return something else than a HTTP response, e.g. a websocket endpoint which may instead return a websocket event handler
Type members
Inherited types
Value members
Abstract methods
HttpEndpoints are unique among decorators in that they alone can bind
path segments to parameters, e.g. binding /hello/:world
to (world: Int)
.
In order to do so, we need to box up the path segment strings into an
Input so they can later be parsed by getParamParser into an
instance of the appropriate type.
HttpEndpoints are unique among decorators in that they alone can bind
path segments to parameters, e.g. binding /hello/:world
to (world: Int)
.
In order to do so, we need to box up the path segment strings into an
Input so they can later be parsed by getParamParser into an
instance of the appropriate type.
Concrete methods
Whether or not this endpoint allows matching on sub-paths: does
@endpoint("/foo")
capture the path "/foo/bar/baz"? Useful to e.g. have
an endpoint match URLs with paths in a filesystem (real or virtual) to
serve files
Whether or not this endpoint allows matching on sub-paths: does
@endpoint("/foo")
capture the path "/foo/bar/baz"? Useful to e.g. have
an endpoint match URLs with paths in a filesystem (real or virtual) to
serve files
Inherited methods
Abstract fields
Which HTTP methods does this endpoint support? POST? GET? PUT? Or some combination of those?
Which HTTP methods does this endpoint support? POST? GET? PUT? Or some combination of those?