Sha256: 0f23a80477b8e420a0d2cf2b7f8fbe1126cc5fc1de5ce6cef46553dd65e196d5
Contents?: true
Size: 999 Bytes
Versions: 5
Compression:
Stored size: 999 Bytes
Contents
#import "HTTPRedirectResponse.h" #import "HTTPLogging.h" #if ! __has_feature(objc_arc) #warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC). #endif // Log levels : off, error, warn, info, verbose // Other flags: trace static const int httpLogLevel = HTTP_LOG_LEVEL_OFF; // | HTTP_LOG_FLAG_TRACE; @implementation HTTPRedirectResponse - (id)initWithPath:(NSString *)path { if ((self = [super init])) { HTTPLogTrace(); redirectPath = [path copy]; } return self; } - (UInt64)contentLength { return 0; } - (UInt64)offset { return 0; } - (void)setOffset:(UInt64)offset { // Nothing to do } - (NSData *)readDataOfLength:(NSUInteger)length { HTTPLogTrace(); return nil; } - (BOOL)isDone { return YES; } - (NSDictionary *)httpHeaders { HTTPLogTrace(); return [NSDictionary dictionaryWithObject:redirectPath forKey:@"Location"]; } - (NSInteger)status { HTTPLogTrace(); return 302; } - (void)dealloc { HTTPLogTrace(); } @end
Version data entries
5 entries across 5 versions & 2 rubygems