#22 Exposed hooks to monitor bytes read and written

This commit is contained in:
Pierre-Olivier Latour
2014-03-19 09:44:15 -07:00
parent e65b569ddc
commit 096b07a201
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -38,6 +38,8 @@
@interface GCDWebServerConnection (Subclassing)
- (void)open;
- (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;
- (void)close;
@end