FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void FB::BrowserStreamRequest::setCallback ( const HttpCallback &  cb)
inline

Call this method to provide a callback function that should be called when the request completes.

This method cannot be used with setEventSink. One or the other must be called or the request will be ignored. If you need to receive data as it comes from the browser or a really large file, use this method. If you just want to be notified when the download completes and receive a byte buffer with the output data, use setCallback.

In the case of an unsolicited stream, either this method or setEventSink must be called in order to accept the stream.

Parameters
cbconst HttpCallback &
Author
taxilian

Definition at line 216 of file BrowserStreamRequest.h.

Referenced by FB::SimpleStreamHelper::AsyncGet(), FB::SimpleStreamHelper::AsyncPost(), and FB::SimpleStreamHelper::SynchronousRequest().

216 { callback = cb; accepted = true; }