A library for server-client communication and interaction Server side

Typedefs

HttpBodyExtractor(HttpRequest request) → Future<HttpBody>

Helper type function extracting HttpBody from HttpRequest

ServerRequestHandler(ServerRequest request) → Future

Type of handler which can be registered in MultiRequestHandler for processing ServerRequest

Properties

JSON_CONTENT_TYPE → dynamic

read-only
logger → Logger

read / write

Classes

MultiRequestHandler

Class which can process multiple ClientRequest send in one HttpRequest. Is responsible for unpacking HttpRequest and calling aproriate handler which has been registered inside it.

ServerRequest

Exceptions / Errors

AlreadyRegisteredHandlerException

Exception thrown when a you try register second default handler or handler under same name.

UnknownHandlerException

Exception thrown when a MultiRequestHandler can pass one of multiple request to any handler