OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | |
6 #include "core/fetch/FetchUtils.h" | 5 #include "core/fetch/FetchUtils.h" |
7 | 6 |
8 #include "platform/network/HTTPHeaderMap.h" | 7 #include "platform/network/HTTPHeaderMap.h" |
9 #include "platform/network/HTTPParsers.h" | 8 #include "platform/network/HTTPParsers.h" |
10 #include "wtf/HashSet.h" | 9 #include "wtf/HashSet.h" |
11 #include "wtf/Threading.h" | 10 #include "wtf/Threading.h" |
12 #include "wtf/text/AtomicString.h" | 11 #include "wtf/text/AtomicString.h" |
13 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
14 | 13 |
15 namespace blink { | 14 namespace blink { |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 String FetchUtils::normalizeHeaderValue(const String& value) | 196 String FetchUtils::normalizeHeaderValue(const String& value) |
198 { | 197 { |
199 // https://fetch.spec.whatwg.org/#concept-header-value-normalize | 198 // https://fetch.spec.whatwg.org/#concept-header-value-normalize |
200 // Strip leading and trailing whitespace from header value. | 199 // Strip leading and trailing whitespace from header value. |
201 // HTTP whitespace bytes are 0x09, 0x0A, 0x0D, and 0x20. | 200 // HTTP whitespace bytes are 0x09, 0x0A, 0x0D, and 0x20. |
202 | 201 |
203 return value.stripWhiteSpace(isHTTPWhitespace); | 202 return value.stripWhiteSpace(isHTTPWhitespace); |
204 } | 203 } |
205 | 204 |
206 } // namespace blink | 205 } // namespace blink |
OLD | NEW |