Added support for Basic Authentication

This commit is contained in:
Pierre-Olivier Latour
2014-04-17 11:14:17 -03:00
parent 099b2a03e6
commit 80348079a6
6 changed files with 56 additions and 7 deletions
+2
View File
@@ -129,6 +129,8 @@ extern NSString* GCDWebServerDescribeData(NSData* data, NSString* contentType);
@interface GCDWebServer ()
@property(nonatomic, readonly) NSArray* handlers;
@property(nonatomic, readonly) NSString* serverName;
@property(nonatomic, readonly) NSString* authenticationRealm;
@property(nonatomic, readonly) NSString* authenticationBasicAccount;
@property(nonatomic, readonly) BOOL shouldAutomaticallyMapHEADToGET;
- (void)willStartConnection:(GCDWebServerConnection*)connection;
- (void)didEndConnection:(GCDWebServerConnection*)connection;