| 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" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; | 22 const char HttpRequestHeaders::kAcceptCharset[] = "Accept-Charset"; |
| 23 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; | 23 const char HttpRequestHeaders::kAcceptEncoding[] = "Accept-Encoding"; |
| 24 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; | 24 const char HttpRequestHeaders::kAcceptLanguage[] = "Accept-Language"; |
| 25 const char HttpRequestHeaders::kAuthorization[] = "Authorization"; | 25 const char HttpRequestHeaders::kAuthorization[] = "Authorization"; |
| 26 const char HttpRequestHeaders::kCacheControl[] = "Cache-Control"; | 26 const char HttpRequestHeaders::kCacheControl[] = "Cache-Control"; |
| 27 const char HttpRequestHeaders::kConnection[] = "Connection"; | 27 const char HttpRequestHeaders::kConnection[] = "Connection"; |
| 28 const char HttpRequestHeaders::kContentLength[] = "Content-Length"; | 28 const char HttpRequestHeaders::kContentLength[] = "Content-Length"; |
| 29 const char HttpRequestHeaders::kContentType[] = "Content-Type"; | 29 const char HttpRequestHeaders::kContentType[] = "Content-Type"; |
| 30 const char HttpRequestHeaders::kCookie[] = "Cookie"; | 30 const char HttpRequestHeaders::kCookie[] = "Cookie"; |
| 31 const char HttpRequestHeaders::kHost[] = "Host"; | 31 const char HttpRequestHeaders::kHost[] = "Host"; |
| 32 const char HttpRequestHeaders::kIfMatch[] = "If-Match"; |
| 32 const char HttpRequestHeaders::kIfModifiedSince[] = "If-Modified-Since"; | 33 const char HttpRequestHeaders::kIfModifiedSince[] = "If-Modified-Since"; |
| 33 const char HttpRequestHeaders::kIfNoneMatch[] = "If-None-Match"; | 34 const char HttpRequestHeaders::kIfNoneMatch[] = "If-None-Match"; |
| 34 const char HttpRequestHeaders::kIfRange[] = "If-Range"; | 35 const char HttpRequestHeaders::kIfRange[] = "If-Range"; |
| 36 const char HttpRequestHeaders::kIfUnmodifiedSince[] = "If-Unmodified-Since"; |
| 35 const char HttpRequestHeaders::kOrigin[] = "Origin"; | 37 const char HttpRequestHeaders::kOrigin[] = "Origin"; |
| 36 const char HttpRequestHeaders::kPragma[] = "Pragma"; | 38 const char HttpRequestHeaders::kPragma[] = "Pragma"; |
| 37 const char HttpRequestHeaders::kProxyAuthorization[] = "Proxy-Authorization"; | 39 const char HttpRequestHeaders::kProxyAuthorization[] = "Proxy-Authorization"; |
| 38 const char HttpRequestHeaders::kProxyConnection[] = "Proxy-Connection"; | 40 const char HttpRequestHeaders::kProxyConnection[] = "Proxy-Connection"; |
| 39 const char HttpRequestHeaders::kRange[] = "Range"; | 41 const char HttpRequestHeaders::kRange[] = "Range"; |
| 40 const char HttpRequestHeaders::kReferer[] = "Referer"; | 42 const char HttpRequestHeaders::kReferer[] = "Referer"; |
| 41 const char HttpRequestHeaders::kTransferEncoding[] = "Transfer-Encoding"; | 43 const char HttpRequestHeaders::kTransferEncoding[] = "Transfer-Encoding"; |
| 42 const char HttpRequestHeaders::kTokenBinding[] = "Sec-Token-Binding"; | 44 const char HttpRequestHeaders::kTokenBinding[] = "Sec-Token-Binding"; |
| 43 const char HttpRequestHeaders::kUserAgent[] = "User-Agent"; | 45 const char HttpRequestHeaders::kUserAgent[] = "User-Agent"; |
| 44 | 46 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 for (HeaderVector::const_iterator it = headers_.begin(); | 253 for (HeaderVector::const_iterator it = headers_.begin(); |
| 252 it != headers_.end(); ++it) { | 254 it != headers_.end(); ++it) { |
| 253 if (base::EqualsCaseInsensitiveASCII(key, it->key)) | 255 if (base::EqualsCaseInsensitiveASCII(key, it->key)) |
| 254 return it; | 256 return it; |
| 255 } | 257 } |
| 256 | 258 |
| 257 return headers_.end(); | 259 return headers_.end(); |
| 258 } | 260 } |
| 259 | 261 |
| 260 } // namespace net | 262 } // namespace net |
| OLD | NEW |