Index
This port's purpose is to develop HTTP servers (REST services or Web applications). It defines a DSL to declare HTTP request handlers.
All Types¶
Name | Summary |
---|---|
com.hexagonkt.http.server.Call¶
HTTP request context. It holds client supplied data and methods to change the response.
|
com.hexagonkt.http.server.CorsSettings¶
HTTP CORS setting. It holds info for CORS.
|
com.hexagonkt.http.server.ErrorCodeCallback¶
Alias for errors' callbacks. Functions executed to handle a HTTP error code.
|
com.hexagonkt.http.server.ExceptionCallback¶
Alias for exceptions' callbacks. Functions executed when an exception is thrown.
|
com.hexagonkt.http.server.FilterOrder¶
Type of filter. Indicates when the filter is executed.
|
com.hexagonkt.http.server.PortHttpServerSamplesTest¶
|
com.hexagonkt.http.server.Request¶
Lists would be initialized loading all elements when they are used (set it as lazy in implementations) this will have a performance penalty in favor of ease of use. The alternative would be using a 'Map/List wrapper that delegates calls to abstract methods in the interface (I won't do this just now).
|
com.hexagonkt.http.server.RequestHandler¶
Base class for request handlers.
|
com.hexagonkt.http.server.Response¶
Check 'Request' comment. And also note that lists should be updated by engines after callback is processed, this data is like a buffer that needs to be dumped to the real response.
|
com.hexagonkt.http.server.RouteCallback¶
Alias for routes' and filters' callbacks. Functions executed when a route is matched.
|
com.hexagonkt.http.server.Router¶
Creates and initializes a Router based on a code block.
|
com.hexagonkt.http.server.Server¶
A server that listen to HTTP connections on a port and address and route requests using a router.
|
com.hexagonkt.http.server.ServerPort¶
Represents a server instance of one kind.
|
com.hexagonkt.http.server.ServerSettings¶
Holds server settings info.
|
com.hexagonkt.http.server.Session¶
Provides session information.