Added support for "Last-Modified" response header

This commit is contained in:
Pierre-Olivier Latour
2014-04-08 22:55:28 -07:00
parent 7339a7a2a6
commit f1a79ffd11
4 changed files with 13 additions and 2 deletions
+3 -1
View File
@@ -156,6 +156,7 @@
NSUInteger _length;
NSInteger _status;
NSUInteger _maxAge;
NSDate* _lastModified;
NSMutableDictionary* _headers;
BOOL _chunked;
BOOL _gzipped;
@@ -168,7 +169,7 @@
@implementation GCDWebServerResponse
@synthesize contentType=_type, contentLength=_length, statusCode=_status, cacheControlMaxAge=_maxAge,
@synthesize contentType=_type, contentLength=_length, statusCode=_status, cacheControlMaxAge=_maxAge, lastModifiedDate=_lastModified,
gzipContentEncodingEnabled=_gzipped, additionalHeaders=_headers;
+ (instancetype)response {
@@ -189,6 +190,7 @@
- (void)dealloc {
ARC_RELEASE(_type);
ARC_RELEASE(_lastModified);
ARC_RELEASE(_headers);
ARC_RELEASE(_encoders);