Automatically map HEAD requests to GET ones

This commit is contained in:
Pierre-Olivier Latour
2014-04-09 00:53:06 -07:00
parent 62ee560d51
commit 157b683082
5 changed files with 44 additions and 20 deletions
+1
View File
@@ -40,6 +40,7 @@
@end
@interface GCDWebServerConnection (Subclassing)
+ (BOOL)shouldAutomaticallyMapHEADToGET; // Default is YES which means HEAD requests are mapped to GET requests with the response body being discarded
- (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