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
3 // found in the LICENSE file.
8 #include "core/CoreExport.h"
9 #include "wtf/Allocator.h"
10 #include "wtf/Forward.h"
16 class CORE_EXPORT FetchUtils
{
17 STATIC_ONLY(FetchUtils
);
19 static bool isSimpleMethod(const String
& method
);
20 static bool isSimpleHeader(const AtomicString
& name
, const AtomicString
& value
);
21 static bool isSimpleRequest(const String
& method
, const HTTPHeaderMap
&);
22 static bool isForbiddenMethod(const String
& method
);
23 static bool isUsefulMethod(const String
& method
) { return !isForbiddenMethod(method
); }
24 static bool isForbiddenHeaderName(const String
& name
);
25 static bool isForbiddenResponseHeaderName(const String
& name
);
26 static bool isSimpleOrForbiddenRequest(const String
& method
, const HTTPHeaderMap
&);
27 static AtomicString
normalizeMethod(const AtomicString
& method
);