1
2/*
3 * Copyright (C) 2014 Apple Inc. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
15 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
18 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
24 * THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27/// This file is generated by create-http-header-name-table, do not edit.
28
29#ifndef HTTPHeaderNames_h
30#define HTTPHeaderNames_h
31
32#include <wtf/Forward.h>
33
34namespace WebCore {
35
36enum class HTTPHeaderName {
37 Accept,
38 AcceptCharset,
39 AcceptEncoding,
40 AcceptLanguage,
41 AcceptRanges,
42 AccessControlAllowCredentials,
43 AccessControlAllowHeaders,
44 AccessControlAllowMethods,
45 AccessControlAllowOrigin,
46 AccessControlExposeHeaders,
47 AccessControlMaxAge,
48 AccessControlRequestHeaders,
49 AccessControlRequestMethod,
50 Age,
51 Authorization,
52 CacheControl,
53 Connection,
54 ContentDisposition,
55 ContentEncoding,
56 ContentLanguage,
57 ContentLength,
58 ContentRange,
59 ContentSecurityPolicy,
60 ContentSecurityPolicyReportOnly,
61 ContentType,
62 Cookie,
63 Cookie2,
64 CrossOriginResourcePolicy,
65 DNT,
66 Date,
67 DefaultStyle,
68 ETag,
69 Expect,
70 Expires,
71 Host,
72 IcyMetaInt,
73 IcyMetadata,
74 IfMatch,
75 IfModifiedSince,
76 IfNoneMatch,
77 IfRange,
78 IfUnmodifiedSince,
79 KeepAlive,
80 LastEventID,
81 LastModified,
82 Link,
83 Location,
84 Origin,
85 PingFrom,
86 PingTo,
87 Pragma,
88 ProxyAuthorization,
89 Purpose,
90 Range,
91 Referer,
92 ReferrerPolicy,
93 Refresh,
94 SecWebSocketAccept,
95 SecWebSocketExtensions,
96 SecWebSocketKey,
97 SecWebSocketProtocol,
98 SecWebSocketVersion,
99 ServerTiming,
100 ServiceWorkerAllowed,
101 SetCookie,
102 SetCookie2,
103 SourceMap,
104 TE,
105 TimingAllowOrigin,
106 Trailer,
107 TransferEncoding,
108 Upgrade,
109 UpgradeInsecureRequests,
110 UserAgent,
111 Vary,
112 Via,
113 XContentTypeOptions,
114 XDNSPrefetchControl,
115 XFrameOptions,
116 XSourceMap,
117 XWebKitCSP,
118 XWebKitCSPReportOnly,
119 XXSSProtection,
120};
121
122const unsigned numHTTPHeaderNames = 83;
123const size_t minHTTPHeaderNameLength = 2;
124const size_t maxHTTPHeaderNameLength = 35;
125
126bool findHTTPHeaderName(StringView, HTTPHeaderName&);
127WEBCORE_EXPORT StringView httpHeaderNameString(HTTPHeaderName);
128
129} // namespace WebCore
130
131#endif // HTTPHeaderNames_h
132