Add remote and local addresses to GCDWebServerRequest

This commit is contained in:
Sergio Padrino
2015-03-20 13:39:58 +01:00
parent fe472cdd54
commit 79d6075a84
4 changed files with 39 additions and 1 deletions
+2
View File
@@ -211,6 +211,8 @@ extern NSString* GCDWebServerStringFromSockAddr(const struct sockaddr* addr, BOO
@interface GCDWebServerRequest ()
@property(nonatomic, readonly) BOOL usesChunkedTransferEncoding;
@property(nonatomic, readwrite) NSData* localAddressData;
@property(nonatomic, readwrite) NSData* remoteAddressData;
- (void)prepareForWriting;
- (BOOL)performOpen:(NSError**)error;
- (BOOL)performWriteData:(NSData*)data error:(NSError**)error;