This commit is contained in:
Pierre-Olivier Latour
2014-10-16 08:13:31 -07:00
parent 514c09dc39
commit 8c8e4847a5
@@ -42,8 +42,10 @@ typedef NSData* (^GCDWebServerStreamBlock)(NSError** error);
* The block must return empty NSData when done or nil on error and set the
* "error" argument which is guaranteed to be non-NULL.
*
* The block must eventually call "completionBlock" passing the streamed data
* if any and the error if applicable.
* The block must regularly call "completionBlock" passing new streamed data.
* Eventually it must call "completionBlock" passing an empty NSData indicating
* the end of the stream has been reached, or pass nil and an NSError in case of
* error.
*/
typedef void (^GCDWebServerAsyncStreamBlock)(GCDWebServerBodyReaderCompletionBlock completionBlock);