HttpRPCServer

An HTTP RPC server.

Constructors

this
this(URLRouter router, string path)
Undocumented in source.

Members

Aliases

RPCRespHandler
alias RPCRespHandler = IRPCServerOutput!TResponse
Undocumented in source.
RequestHandler
alias RequestHandler = RPCRequestHandler!(TRequest, TResponse)
Undocumented in source.

Functions

buildResponseFromException
TResponse buildResponseFromException(Exception e)
Undocumented in source.
onPostRequest
void onPostRequest(HTTPServerRequest req, HTTPServerResponse res)

Handle all HTTP POST request on the RPC route and forward call to the service.

process
void process(string data, RPCRespHandler respHandler)
Undocumented in source. Be warned that the author may not have intended to support it.
registerInterface
void registerInterface(I instance, RPCInterfaceSettings settings)
Undocumented in source. Be warned that the author may not have intended to support it.
registerRequestHandler
void registerRequestHandler(string method, RequestHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta