| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "net/http/http_log_util.h" | 14 #include "net/http/http_log_util.h" |
| 15 #include "net/http/http_util.h" | 15 #include "net/http/http_util.h" |
| 16 #include "net/log/net_log_capture_mode.h" |
| 16 | 17 |
| 17 namespace net { | 18 namespace net { |
| 18 | 19 |
| 19 const char HttpRequestHeaders::kGetMethod[] = "GET"; | 20 const char HttpRequestHeaders::kGetMethod[] = "GET"; |
| 20 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; | 21 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; |
| 21 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; | 22 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; |
| 22 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; | 23 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; |
| 23 const char HttpRequestHeaders::kAuthorization[] = "Authorization"; | 24 const char HttpRequestHeaders::kAuthorization[] = "Authorization"; |
| 24 const char HttpRequestHeaders::kCacheControl[] = "Cache-Control"; | 25 const char HttpRequestHeaders::kCacheControl[] = "Cache-Control"; |
| 25 const char HttpRequestHeaders::kConnection[] = "Connection"; | 26 const char HttpRequestHeaders::kConnection[] = "Connection"; |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 for (HeaderVector::const_iterator it = headers_.begin(); | 248 for (HeaderVector::const_iterator it = headers_.begin(); |
| 248 it != headers_.end(); ++it) { | 249 it != headers_.end(); ++it) { |
| 249 if (base::EqualsCaseInsensitiveASCII(key, it->key)) | 250 if (base::EqualsCaseInsensitiveASCII(key, it->key)) |
| 250 return it; | 251 return it; |
| 251 } | 252 } |
| 252 | 253 |
| 253 return headers_.end(); | 254 return headers_.end(); |
| 254 } | 255 } |
| 255 | 256 |
| 256 } // namespace net | 257 } // namespace net |
| OLD | NEW |