OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/http/http_request_headers.h" | 5 #include "net/http/http_request_headers.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" |
8 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
9 #include "base/string_split.h" | 10 #include "base/strings/string_split.h" |
10 #include "base/string_util.h" | |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "net/http/http_util.h" | 12 #include "net/http/http_util.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 | 15 |
16 const char HttpRequestHeaders::kGetMethod[] = "GET"; | 16 const char HttpRequestHeaders::kGetMethod[] = "GET"; |
17 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; | 17 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; |
18 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; | 18 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; |
19 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; | 19 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; |
20 const char HttpRequestHeaders::kAuthorization[] = "Authorization"; | 20 const char HttpRequestHeaders::kAuthorization[] = "Authorization"; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 it != headers_.end(); ++it) { | 249 it != headers_.end(); ++it) { |
250 if (key.length() == it->key.length() && | 250 if (key.length() == it->key.length() && |
251 !base::strncasecmp(key.data(), it->key.data(), key.length())) | 251 !base::strncasecmp(key.data(), it->key.data(), key.length())) |
252 return it; | 252 return it; |
253 } | 253 } |
254 | 254 |
255 return headers_.end(); | 255 return headers_.end(); |
256 } | 256 } |
257 | 257 |
258 } // namespace net | 258 } // namespace net |
OLD | NEW |