Changed -[GCDWebServerConnection open] to return a BOOL

This commit is contained in:
Pierre-Olivier Latour
2014-04-15 16:20:39 -03:00
parent 4fb5d67e9b
commit a55781e2c1
2 changed files with 23 additions and 14 deletions

View File

@@ -40,7 +40,7 @@
@end
@interface GCDWebServerConnection (Subclassing)
- (void)open;
- (BOOL)open; // Return NO to reject connection e.g. after validating local or remote addresses
- (void)didUpdateBytesRead; // Called from arbitrary thread after @totalBytesRead is updated - Default implementation does nothing
- (void)didUpdateBytesWritten; // Called from arbitrary thread after @totalBytesWritten is updated - Default implementation does nothing
- (GCDWebServerResponse*)processRequest:(GCDWebServerRequest*)request withBlock:(GCDWebServerProcessBlock)block; // Only called if the request can be processed