nsHttpAtomList.h (4780B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 /****** 7 This file contains the list of all HTTP atoms 8 See nsHttp.h for access to the atoms. 9 10 It is designed to be used as inline input to nsHttp.cpp *only* 11 through the magic of C preprocessing. 12 13 All entries must be enclosed in the macro HTTP_ATOM which will have cruel 14 and unusual things done to it. 15 16 The first argument to HTTP_ATOM is the C++ name of the atom. 17 The second argument to HTTP_ATOM is the string value of the atom. 18 ******/ 19 20 HTTP_ATOM(Accept, "Accept") 21 HTTP_ATOM(Accept_Encoding, "Accept-Encoding") 22 HTTP_ATOM(Accept_Language, "Accept-Language") 23 HTTP_ATOM(Accept_Ranges, "Accept-Ranges") 24 HTTP_ATOM(Access_Control_Allow_Origin, "Access-Control-Allow-Origin") 25 HTTP_ATOM(Age, "Age") 26 HTTP_ATOM(Allow, "Allow") 27 HTTP_ATOM(Alternate_Service, "Alt-Svc") 28 HTTP_ATOM(Alternate_Service_Used, "Alt-Used") 29 HTTP_ATOM(Assoc_Req, "Assoc-Req") 30 HTTP_ATOM(Authentication, "Authentication") 31 HTTP_ATOM(Authorization, "Authorization") 32 HTTP_ATOM(Available_Dictionary, "Available-Dictionary") 33 HTTP_ATOM(Cache_Control, "Cache-Control") 34 HTTP_ATOM(Connection, "Connection") 35 HTTP_ATOM(Content_Disposition, "Content-Disposition") 36 HTTP_ATOM(Content_Encoding, "Content-Encoding") 37 HTTP_ATOM(Content_Language, "Content-Language") 38 HTTP_ATOM(Content_Length, "Content-Length") 39 HTTP_ATOM(Content_Location, "Content-Location") 40 HTTP_ATOM(Content_MD5, "Content-MD5") 41 HTTP_ATOM(Content_Range, "Content-Range") 42 HTTP_ATOM(Content_Security_Policy, "Content-Security-Policy") 43 HTTP_ATOM(Content_Type, "Content-Type") 44 HTTP_ATOM(Cookie, "Cookie") 45 HTTP_ATOM(Cross_Origin_Embedder_Policy, "Cross-Origin-Embedder-Policy") 46 HTTP_ATOM(Cross_Origin_Opener_Policy, "Cross-Origin-Opener-Policy") 47 HTTP_ATOM(Cross_Origin_Resource_Policy, "Cross-Origin-Resource-Policy") 48 HTTP_ATOM(Date, "Date") 49 HTTP_ATOM(DAV, "DAV") 50 HTTP_ATOM(Depth, "Depth") 51 HTTP_ATOM(Destination, "Destination") 52 HTTP_ATOM(Dictionary_Id, "Dictionary-Id") 53 HTTP_ATOM(DoNotTrack, "DNT") 54 HTTP_ATOM(ETag, "Etag") 55 HTTP_ATOM(Expect, "Expect") 56 HTTP_ATOM(Expires, "Expires") 57 HTTP_ATOM(From, "From") 58 HTTP_ATOM(GlobalPrivacyControl, "Sec-GPC") 59 HTTP_ATOM(Host, "Host") 60 HTTP_ATOM(Idempotency_Key, "Idempotency-Key") 61 HTTP_ATOM(If, "If") 62 HTTP_ATOM(If_Match, "If-Match") 63 HTTP_ATOM(If_Modified_Since, "If-Modified-Since") 64 HTTP_ATOM(If_None_Match, "If-None-Match") 65 HTTP_ATOM(If_None_Match_Any, "If-None-Match-Any") 66 HTTP_ATOM(If_Range, "If-Range") 67 HTTP_ATOM(If_Unmodified_Since, "If-Unmodified-Since") 68 HTTP_ATOM(Keep_Alive, "Keep-Alive") 69 HTTP_ATOM(Last_Modified, "Last-Modified") 70 HTTP_ATOM(Lock_Token, "Lock-Token") 71 HTTP_ATOM(Link, "Link") 72 HTTP_ATOM(Location, "Location") 73 HTTP_ATOM(Max_Forwards, "Max-Forwards") 74 HTTP_ATOM(NEL, "NEL") 75 HTTP_ATOM(Origin, "Origin") 76 HTTP_ATOM(OriginAgentCluster, "Origin-Agent-Cluster") 77 HTTP_ATOM(OriginTrial, "Origin-Trial") 78 HTTP_ATOM(Overwrite, "Overwrite") 79 HTTP_ATOM(Pragma, "Pragma") 80 HTTP_ATOM(Prefer, "Prefer") 81 HTTP_ATOM(Proxy_Authenticate, "Proxy-Authenticate") 82 HTTP_ATOM(Proxy_Authorization, "Proxy-Authorization") 83 HTTP_ATOM(Proxy_Connection, "Proxy-Connection") 84 HTTP_ATOM(Range, "Range") 85 HTTP_ATOM(Referer, "Referer") 86 HTTP_ATOM(Referrer_Policy, "Referrer-Policy") 87 HTTP_ATOM(Retry_After, "Retry-After") 88 HTTP_ATOM(Sec_WebSocket_Extensions, "Sec-WebSocket-Extensions") 89 HTTP_ATOM(Sec_WebSocket_Protocol, "Sec-WebSocket-Protocol") 90 HTTP_ATOM(Sec_WebSocket_Version, "Sec-WebSocket-Version") 91 HTTP_ATOM(Sec_Fetch_Storage_Access, "Sec-Fetch-Storage-Access") 92 HTTP_ATOM(Server, "Server") 93 HTTP_ATOM(Server_Timing, "Server-Timing") 94 HTTP_ATOM(Service_Worker_Allowed, "Service-Worker-Allowed") 95 HTTP_ATOM(Set_Cookie, "Set-Cookie") 96 HTTP_ATOM(Set_Login, "Set-Login") 97 HTTP_ATOM(Status_URI, "Status-URI") 98 HTTP_ATOM(Strict_Transport_Security, "Strict-Transport-Security") 99 HTTP_ATOM(TE, "TE") 100 HTTP_ATOM(Title, "Title") 101 HTTP_ATOM(Timeout, "Timeout") 102 HTTP_ATOM(Trailer, "Trailer") 103 HTTP_ATOM(Transfer_Encoding, "Transfer-Encoding") 104 HTTP_ATOM(URI, "URI") 105 HTTP_ATOM(Upgrade, "Upgrade") 106 HTTP_ATOM(User_Agent, "User-Agent") 107 HTTP_ATOM(Use_As_Dictionary, "Use-As-Dictionary") 108 HTTP_ATOM(Vary, "Vary") 109 HTTP_ATOM(Version, "Version") 110 HTTP_ATOM(WWW_Authenticate, "WWW-Authenticate") 111 HTTP_ATOM(Warning, "Warning") 112 HTTP_ATOM(X_Content_Type_Options, "X-Content-Type-Options") 113 HTTP_ATOM(X_Firefox_Spdy, "X-Firefox-Spdy") 114 HTTP_ATOM(X_Firefox_Spdy_Proxy, "X-Firefox-Spdy-Proxy") 115 HTTP_ATOM(X_Firefox_Early_Data, "X-Firefox-Early-Data") 116 HTTP_ATOM(X_Firefox_Http3, "X-Firefox-Http3") 117 HTTP_ATOM(X_Frame_Options, "X-Frame-Options") 118 119 // methods are case sensitive and do not use atom table