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