初始化提交
This commit is contained in:
20
WebDriverAgentLib/Vendor/RoutingHTTPServer/RouteResponse.h
vendored
Normal file
20
WebDriverAgentLib/Vendor/RoutingHTTPServer/RouteResponse.h
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "HTTPResponse.h"
|
||||
@class HTTPConnection;
|
||||
@class HTTPResponseProxy;
|
||||
|
||||
@interface RouteResponse : NSObject
|
||||
|
||||
@property (nonatomic, unsafe_unretained, readonly) HTTPConnection *connection;
|
||||
@property (nonatomic, readonly) NSDictionary *headers;
|
||||
@property (nonatomic, strong) NSObject<HTTPResponse> *response;
|
||||
@property (nonatomic, readonly) NSObject<HTTPResponse> *proxiedResponse;
|
||||
@property (nonatomic) NSInteger statusCode;
|
||||
|
||||
- (id)initWithConnection:(HTTPConnection *)theConnection;
|
||||
- (void)setHeader:(NSString *)field value:(NSString *)value;
|
||||
- (void)respondWithString:(NSString *)string;
|
||||
- (void)respondWithString:(NSString *)string encoding:(NSStringEncoding)encoding;
|
||||
- (void)respondWithData:(NSData *)data;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user