rpc ~master (2019-04-11T21:28:52Z)
Dub
Repo
RawJsonRpcServer
rpc
protocol
json
class
RawJsonRpcServer : RawRpcServer!(TId, TReq, TResp), IRpcServerOutput!TResp(
TId
TReq
=
JsonRpcRequest
!
TId
TResp
=
JsonRpcResponse
!
TId
) {
import
vibe
.
stream
.
operations
:
readAllUTF8
;
;
import
vibe
.
core
.
stream
:
InputStream
,
OutputStream
;
;
alias
RequestHandler
=
JsonRpcRequestHandler
!(
TId
,
TReq
,
TResp
)
;
this
(OutputStream ostream, InputStream istream);
void
registerRequestHandler
(string method, RequestHandler handler);
void
sendResponse
(TResp reponse);
void
tick
();
}
Constructors
this
this
(OutputStream ostream, InputStream istream)
Undocumented in source.
Members
Aliases
RequestHandler
alias
RequestHandler
=
JsonRpcRequestHandler
!(
TId
,
TReq
,
TResp
)
Undocumented in source.
Functions
registerRequestHandler
void
registerRequestHandler
(string method, RequestHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
sendResponse
void
sendResponse
(TResp reponse)
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