初始化提交
This commit is contained in:
40
WebDriverAgentLib/Vendor/CocoaHTTPServer/Responses/HTTPErrorResponse.m
vendored
Normal file
40
WebDriverAgentLib/Vendor/CocoaHTTPServer/Responses/HTTPErrorResponse.m
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
#import "HTTPErrorResponse.h"
|
||||
|
||||
#pragma clang diagnostic ignored "-Wdirect-ivar-access"
|
||||
|
||||
@implementation HTTPErrorResponse
|
||||
|
||||
-(id)initWithErrorCode:(int)httpErrorCode
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
_status = httpErrorCode;
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (UInt64) contentLength {
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (UInt64) offset {
|
||||
return 0;
|
||||
}
|
||||
|
||||
- (void)setOffset:(UInt64)offset {
|
||||
;
|
||||
}
|
||||
|
||||
- (NSData*) readDataOfLength:(NSUInteger)length {
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL) isDone {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (NSInteger) status {
|
||||
return _status;
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user