clean_ajax.server library

A library for server-client communication and interaction Server side

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

Properties

JSON_CONTENT_TYPE ContentType
final
logger Logger
read / write

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

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