blob: 3d32875efecff6794cecc926cd54e0e9b813b5de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/net/crn_http_url_response.h"
#include "base/mac/scoped_nsobject.h"
@interface CRNHTTPURLResponse () {
base::scoped_nsobject<NSString> _cr_HTTPVersion;
}
@end
@implementation CRNHTTPURLResponse
- (NSString*)cr_HTTPVersion {
return _cr_HTTPVersion;
}
- (instancetype)initWithURL:(NSURL*)url
statusCode:(NSInteger)statusCode
HTTPVersion:(NSString*)HTTPVersion
headerFields:(NSDictionary*)headerFields {
self = [super initWithURL:url
statusCode:statusCode
HTTPVersion:HTTPVersion
headerFields:headerFields];
if (self) {
_cr_HTTPVersion.reset([HTTPVersion copy]);
}
return self;
}
@end
|