rpc v1.1.0 (2018-09-06T18:10:46Z)
Dub
Repo
RawJsonRPCClient
rpc
protocol
json
Undocumented in source.
class
RawJsonRPCClient : RawRPCClient!(TId, JsonRPCRequest!TId, JsonRPCResponse!TId)(
TId
) {
import
core
.
time
:
Duration
;
;
import
vibe
.
data
.
json
;
;
import
vibe
.
stream
.
operations
:
readAllUTF8
;
;
import
vibe
.
core
.
stream
:
InputStream
,
OutputStream
;
;
import
vibe
.
core
.
stream
:
InputStream
,
OutputStream
;
;
this
(OutputStream ostream, InputStream istream);
JsonRPCResponse
!
TId
sendRequestAndWait
(JsonRPCRequest!TId request, Duration timeout);
void
tick
();
JsonRPCResponse
!
TId
waitForResponse
(TId id, Duration timeout);
}
Constructors
this
this
(OutputStream ostream, InputStream istream)
Undocumented in source.
Members
Functions
sendRequestAndWait
JsonRPCResponse
!
TId
sendRequestAndWait
(JsonRPCRequest!TId request, Duration timeout)
Send a request with an auto-generated id.
tick
void
tick
()
Undocumented in source. Be warned that the author may not have intended to support it.
waitForResponse
JsonRPCResponse
!
TId
waitForResponse
(TId id, Duration timeout)
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
JsonRPCAutoClient
JsonRPCError
JsonRPCMethodException
JsonRPCRequest
JsonRPCResponse
JsonRPCUserException
RawJsonRPCAutoClient
RawJsonRPCClient
RawJsonRPCServer
TCPJsonRPCAutoClient
TCPJsonRPCClient
TCPJsonRPCServer
functions
jsonRpcMethodHandler