OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ios/net/http_response_headers_util.h" | 5 #include "ios/net/http_response_headers_util.h" |
6 | 6 |
7 #include <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/strings/sys_string_conversions.h" | 11 #include "base/strings/sys_string_conversions.h" |
12 #include "net/http/http_util.h" | 12 #include "net/http/http_util.h" |
13 | 13 |
14 #if !defined(__has_feature) || !__has_feature(objc_arc) | 14 #if !defined(__has_feature) || !__has_feature(objc_arc) |
15 #error "This file requires ARC support." | 15 #error "This file requires ARC support." |
16 #endif | 16 #endif |
17 | 17 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 std::string header_line = | 49 std::string header_line = |
50 base::StringPrintf(kHeaderLineFormat, header_name.c_str(), | 50 base::StringPrintf(kHeaderLineFormat, header_name.c_str(), |
51 header_value.c_str()); | 51 header_value.c_str()); |
52 http_headers->AddHeader(header_line); | 52 http_headers->AddHeader(header_line); |
53 } | 53 } |
54 }]; | 54 }]; |
55 return http_headers; | 55 return http_headers; |
56 } | 56 } |
57 | 57 |
58 } // namespae net | 58 } // namespae net |
OLD | NEW |