rpc ~master (2019-04-11T21:28:52Z)
Dub
Repo
HttpJsonRpcServer
rpc
protocol
json
An http json-rpc client
class
HttpJsonRpcServer : HttpRpcServer!(TId, TReq, TResp)(
TId
TReq
:
JsonRpcRequest
!
TId
=
JsonRpcRequest
!
TId
TResp
:
JsonRpcResponse
!
TId
=
JsonRpcResponse
!
TId
) {
import
vibe
.
data
.
json
:
JSONException
;
;
import
vibe
.
http
.
router
:
URLRouter
;
;
this
(URLRouter router, string path);
RpcRespHandler
createReponseHandler
(HTTPServerResponse res);
void
tick
();
TResp
buildResponseFromException
(Exception e);
void
registerInterface
(I instance, RpcInterfaceSettings settings);
}
Constructors
this
this
(URLRouter router, string path)
Undocumented in source.
Members
Functions
buildResponseFromException
TResp
buildResponseFromException
(Exception e)
Undocumented in source. Be warned that the author may not have intended to support it.
createReponseHandler
RpcRespHandler
createReponseHandler
(HTTPServerResponse res)
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.
tick
void
tick
()
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
rpc
protocol
json
aliases
HttpJsonRpcClient
IJsonRpcClient
IJsonRpcServer
JsonRpcRequestHandler
classes
HttpJsonRpcAutoClient
HttpJsonRpcServer
JsonRpcAutoAttributeClient
JsonRpcAutoClient
JsonRpcError
JsonRpcMethodException
JsonRpcRequest
JsonRpcResponse
JsonRpcUserException
RawJsonRpcAutoClient
RawJsonRpcClient
RawJsonRpcServer
TcpJsonRpcAutoClient
TcpJsonRpcClient
TcpJsonRpcServer
functions
jsonRpcMethodHandler
An http json-rpc client