134 const Version =
"1.0";
137 const VersionString = sprintf(
"Qore-DataStreamClient/%s", DataStreamClient::Version);
140 const DefaultHeaders = RestClient::DefaultHeaders + (
141 "User-Agent": DataStreamClient::VersionString,
169 constructor(*hash opts, *softbool do_not_connect);
202 recvDataStream(code rcb, code ecb,
string method,
string path, any body, timeout timeout_ms = 0, *reference info, *hash hdr);
234 recvDataStream(
DataStreamRecvMessage dsm,
string method,
string path, any body, timeout timeout_ms = 0, *reference info, *hash hdr);
272 hash sendDataStream(code scb,
string method,
string path, timeout timeout_ms = 0, *reference info, *hash hdr);
310 hash sendDataStream(
DataStreamSendMessage dsm,
string method,
string path, timeout timeout_ms = 0, *reference info, *hash hdr);
350 sendRecvDataStream(code scb, code rcb, code ecb,
string method,
string path, timeout timeout_ms = 0, *reference info, *hash hdr);
388 sendRecvDataStream(
DataStreamMessage dsm,
string method,
string path, timeout timeout_ms = 0, *reference info, *hash hdr);
420 hash sendRawStream(code scb,
string method, *
string path, timeout timeout_ms = 0, *reference info, *hash hdr);
459 hash getRawStream(code rcb,
string method, *
string path, any body, timeout timeout_ms = 0, *reference info, *hash hdr);
475 addDefaultHeaders(hash h);
488 setContentEncoding(
string enc =
"auto");
492 private nothing prepareMsg(reference body, reference hdr,
string ct =
"Content-Type");
496 hash sendAndDecodeResponse(*data body,
string m,
string path, hash hdr, *reference info, *softbool decode_errors);
abstract private any sendDataImpl()
reimplement this method in subclasses to support streamed data transfers; when this method returns no...
this class can be used to send and receive data using the DataStream protocol
Definition: DataStreamClient.qm.dox.h:69
private nothing recvDataDoneImpl(*string err)
this method is called when all data has been received
nothing recvDataDone(*string err)
this method is called when all data has been received; this method calls recvDataDoneImpl() ...
the DataStreamClient namespace contains all the public objects in the DataStreamClient module ...
Definition: DataStreamClient.qm.dox.h:67
this class can be used to send and receive data using the DataStream protocol
Definition: DataStreamClient.qm.dox.h:89
nothing recvData(any data)
receives decoded data from the remote end and calls recvDataImpl()
abstract private nothing recvDataImpl(any data)
reimplement this method in subclasses to receive decoded and deserialized data
any sendData()
this method returns data to be returned to the server; when this method returns no value...
this class can be used to send and receive data using the DataStream protocol
Definition: DataStreamClient.qm.dox.h:123