初始化提交
This commit is contained in:
13
WebDriverAgentLib/Vendor/RoutingHTTPServer/HTTPResponseProxy.h
vendored
Normal file
13
WebDriverAgentLib/Vendor/RoutingHTTPServer/HTTPResponseProxy.h
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "HTTPResponse.h"
|
||||
|
||||
// Wraps an HTTPResponse object to allow setting a custom status code
|
||||
// without needing to create subclasses of every response.
|
||||
@interface HTTPResponseProxy : NSObject <HTTPResponse>
|
||||
|
||||
@property (nonatomic) NSObject<HTTPResponse> *response;
|
||||
@property (nonatomic) NSInteger status;
|
||||
|
||||
- (NSInteger)customStatus;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user