|
@@ -28,11 +28,11 @@
|
|
|
#import "GCDWebServerStreamedResponse.h"
|
|
|
|
|
|
/**
|
|
|
- * The GCDWebServerStreamingBlock is called to stream the data for the HTTP body.
|
|
|
+ * The GCDWebServerStreamBlock is called to stream the data for the HTTP body.
|
|
|
* The block must return empty NSData when done or nil on error and set the
|
|
|
* "error" argument which is guaranteed to be non-NULL.
|
|
|
*/
|
|
|
-typedef NSData* (^GCDWebServerStreamingBlock)(NSError** error);
|
|
|
+typedef NSData* (^GCDWebServerStreamBlock)(NSError** error);
|
|
|
|
|
|
/**
|
|
|
* The GCDWebServerStreamedResponse subclass of GCDWebServerResponse streams
|
|
@@ -43,11 +43,11 @@ typedef NSData* (^GCDWebServerStreamingBlock)(NSError** error);
|
|
|
/**
|
|
|
* Creates a response with streamed data and a given content type.
|
|
|
*/
|
|
|
-+ (instancetype)responseWithContentType:(NSString*)type streamBlock:(GCDWebServerStreamingBlock)block;
|
|
|
++ (instancetype)responseWithContentType:(NSString*)type streamBlock:(GCDWebServerStreamBlock)block;
|
|
|
|
|
|
/**
|
|
|
* This method is the designated initializer for the class.
|
|
|
*/
|
|
|
-- (instancetype)initWithContentType:(NSString*)type streamBlock:(GCDWebServerStreamingBlock)block;
|
|
|
+- (instancetype)initWithContentType:(NSString*)type streamBlock:(GCDWebServerStreamBlock)block;
|
|
|
|
|
|
@end
|