[Cache API] Optimize whitespace trimming in Vary header values
[WebKit-https.git] / Source / WebCore / platform / network / HTTPParsers.h
index 484367737fbef7bfdc262227aa6673911954009a..685e83c6cacd3a2f9e021250991b3c6a7488534c 100644 (file)
@@ -112,6 +112,11 @@ inline String stripLeadingAndTrailingHTTPSpaces(const String& string)
     return string.stripWhiteSpace(isHTTPSpace);
 }
 
+inline StringView stripLeadingAndTrailingHTTPSpaces(StringView string)
+{
+    return string.stripLeadingAndTrailingMatchedCharacters(isHTTPSpace);
+}
+
 }
 
 #endif