blob: 9e2b159e6e3b64aa509d94c020aa52caaa1b2eab [file] [log] [blame]
droger476922e02015-03-10 17:17:521// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#import "ios/net/crn_http_url_response.h"
6
droger476922e02015-03-10 17:17:527
stkhapugind335d772016-11-16 16:48:458#if !defined(__has_feature) || !__has_feature(objc_arc)
9#error "This file requires ARC support."
10#endif
11
droger476922e02015-03-10 17:17:5212@interface CRNHTTPURLResponse () {
[email protected]39846192017-12-29 13:03:5213 NSString* _cr_HTTPVersion;
droger476922e02015-03-10 17:17:5214}
15@end
16
17@implementation CRNHTTPURLResponse
18
19- (NSString*)cr_HTTPVersion {
20 return _cr_HTTPVersion;
21}
22
23- (instancetype)initWithURL:(NSURL*)url
24 statusCode:(NSInteger)statusCode
25 HTTPVersion:(NSString*)HTTPVersion
26 headerFields:(NSDictionary*)headerFields {
27 self = [super initWithURL:url
28 statusCode:statusCode
29 HTTPVersion:HTTPVersion
30 headerFields:headerFields];
31 if (self) {
[email protected]39846192017-12-29 13:03:5232 _cr_HTTPVersion = [HTTPVersion copy];
droger476922e02015-03-10 17:17:5233 }
34 return self;
35}
36
37@end