 |
Qore DataStreamRequestHandler Module Reference
1.0
|
code rcb
the receive callback as returned by the DataStreamUtil module
Definition: DataStreamRequestHandler.qm.dox.h:73
code scb
the send callback as returned by the DataStreamUtil module
Definition: DataStreamRequestHandler.qm.dox.h:76
*string send_error
send error string received
Definition: DataStreamRequestHandler.qm.dox.h:88
auto sendData()
This is the concrete method called when data is received; it calls recvDataImpl() in turn.
hash< auto > getResponseHeaderMessageImpl()
returns the response header to the request
nothing recvDataDone(*string err)
this method is called when all data has been received
nothing recvDataDoneImpl(*string err)
this method is called when all data has been received
nothing recvData(auto data)
This is the concrete method called when data is received; it calls recvDataImpl() in turn.
bool send_done
flag for when all data has been sent
Definition: DataStreamRequestHandler.qm.dox.h:82
constructor(hash< auto > cx, *hash< auto > ah)
creates the chunked request handler according to the arguments
the DataStreamRequestHandler namespace contains all the public objects in the DataStreamRequestHandle...
Definition: DataStreamRequestHandler.qm.dox.h:64
abstract auto sendDataImpl()
reimplement this method in subclasses to support streamed data transfers; when this method returns no...
bool recv_done
flag for when all data has been received
Definition: DataStreamRequestHandler.qm.dox.h:79
int err
HTTP status code for error response sent.
Definition: DataStreamRequestHandler.qm.dox.h:85
auto sendImpl()
calls the send callback as returned by the DataStreamUtil module, which in turn calls sendDataImpl() ...
this class implements a chunked request handler supporting the DataStream protocol
Definition: DataStreamRequestHandler.qm.dox.h:69
nothing recvImpl(hash v)
calls the receive callback as returned by the DataStreamUtil module, which in turn calls recvDataImpl...
abstract nothing recvDataImpl(auto data)
reimplement this method in subclasses to receive decoded and deserialized data
*hash< auto > getErrorResponse()
if an error occurred, then return a hash giving an error response, otherwise return nothing