HttpRpcServer

An HTTP RPC server.

Constructors

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

Public Imports

vibe.http.server
public import vibe.http.server : HTTPServerResponse;

Members

Aliases

RequestHandler
alias RequestHandler = RpcRequestHandler!(TRequest, TResponse)
Undocumented in source.
RpcRespHandler
alias RpcRespHandler = IRpcServerOutput!TResponse
Undocumented in source.

Functions

buildResponseFromException
TResponse buildResponseFromException(Exception e)
Undocumented in source.
createReponseHandler
RpcRespHandler createReponseHandler(HTTPServerResponse res)

Creates a new response handler.

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