Inherits from CRMessage : NSObject
Declared in CRResponse.h

Properties

connection

@property (nonatomic, weak, nullable) CRConnection *connection

request

@property (nonatomic, weak, nullable) CRRequest *request

statusCode

@property (nonatomic, readonly) NSUInteger statusCode

statusDescription

@property (nonatomic, strong, readonly, nullable) NSString *statusDescription

Instance Methods

addValue:forHTTPHeaderField:

- (void)addValue:(NSString *)value forHTTPHeaderField:(NSString *)HTTPHeaderField

finish

- (void)finish

redirectToLocation:

- (void)redirectToLocation:(NSString *)location

redirectToLocation:statusCode:

- (void)redirectToLocation:(NSString *)location statusCode:(NSUInteger)statusCode

redirectToLocation:statusCode:finish:

- (void)redirectToLocation:(NSString *)location statusCode:(NSUInteger)statusCode finish:(BOOL)finish

redirectToURL:

- (void)redirectToURL:(NSURL *)URL

redirectToURL:statusCode:

- (void)redirectToURL:(NSURL *)URL statusCode:(NSUInteger)statusCode

redirectToURL:statusCode:finish:

- (void)redirectToURL:(NSURL *)URL statusCode:(NSUInteger)statusCode finish:(BOOL)finish

send:

- (void)send:(id)obj

sendData:

- (void)sendData:(NSData *)data

sendFormat:

- (void)sendFormat:(NSString *)format, ...

sendFormat:args:

- (void)sendFormat:(NSString *)format args:(va_list)args

sendString:

- (void)sendString:(NSString *)string

serializeOutputObject:error:

- (NSData *)serializeOutputObject:(id)obj error:(NSError *_Nullable __autoreleasing *_Nullable)error

setAllHTTPHeaderFields:

- (void)setAllHTTPHeaderFields:(NSDictionary<NSString*,NSString*> *)headerFields

setCookie:

- (void)setCookie:(NSHTTPCookie *)cookie

setCookie:value:path:expires:domain:secure:

- (NSHTTPCookie *)setCookie:(NSString *)name value:(NSString *)value path:(NSString *)path expires:(NSDate *_Nullable)expires domain:(NSString *_Nullable)domain secure:(BOOL)secure

setStatusCode:description:

- (void)setStatusCode:(NSUInteger)statusCode description:(NSString *_Nullable)description

setValue:forHTTPHeaderField:

- (void)setValue:(NSString *)value forHTTPHeaderField:(NSString *)HTTPHeaderField

write:

- (void)write:(id)obj

writeData:

- (void)writeData:(NSData *)data

writeFormat:

- (void)writeFormat:(NSString *)format, ...

writeFormat:args:

- (void)writeFormat:(NSString *)format args:(va_list)args

writeString:

- (void)writeString:(NSString *)string