Generated on Fri Dec 15 2017 16:00:04 for FireBreath by 1.8.6
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.