HTTPResponseProxy.h 375 B

12345678910111213
  1. #import <Foundation/Foundation.h>
  2. #import "HTTPResponse.h"
  3. // Wraps an HTTPResponse object to allow setting a custom status code
  4. // without needing to create subclasses of every response.
  5. @interface HTTPResponseProxy : NSObject <HTTPResponse>
  6. @property (nonatomic) NSObject<HTTPResponse> *response;
  7. @property (nonatomic) NSInteger status;
  8. - (NSInteger)customStatus;
  9. @end