michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /****** michael@0: This file contains the list of all HTTP atoms michael@0: See nsHttp.h for access to the atoms. michael@0: michael@0: It is designed to be used as inline input to nsHttp.cpp *only* michael@0: through the magic of C preprocessing. michael@0: michael@0: All entries must be enclosed in the macro HTTP_ATOM which will have cruel michael@0: and unusual things done to it. michael@0: michael@0: The first argument to HTTP_ATOM is the C++ name of the atom. michael@0: The second argument to HTTP_ATOM is the string value of the atom. michael@0: ******/ michael@0: michael@0: HTTP_ATOM(Accept, "Accept") michael@0: HTTP_ATOM(Accept_Encoding, "Accept-Encoding") michael@0: HTTP_ATOM(Accept_Language, "Accept-Language") michael@0: HTTP_ATOM(Accept_Ranges, "Accept-Ranges") michael@0: HTTP_ATOM(Age, "Age") michael@0: HTTP_ATOM(Allow, "Allow") michael@0: HTTP_ATOM(Assoc_Req, "Assoc-Req") michael@0: HTTP_ATOM(Authentication, "Authentication") michael@0: HTTP_ATOM(Authorization, "Authorization") michael@0: HTTP_ATOM(Cache_Control, "Cache-Control") michael@0: HTTP_ATOM(Connection, "Connection") michael@0: HTTP_ATOM(Content_Disposition, "Content-Disposition") michael@0: HTTP_ATOM(Content_Encoding, "Content-Encoding") michael@0: HTTP_ATOM(Content_Language, "Content-Language") michael@0: HTTP_ATOM(Content_Length, "Content-Length") michael@0: HTTP_ATOM(Content_Location, "Content-Location") michael@0: HTTP_ATOM(Content_MD5, "Content-MD5") michael@0: HTTP_ATOM(Content_Range, "Content-Range") michael@0: HTTP_ATOM(Content_Type, "Content-Type") michael@0: HTTP_ATOM(Cookie, "Cookie") michael@0: HTTP_ATOM(Date, "Date") michael@0: HTTP_ATOM(DAV, "DAV") michael@0: HTTP_ATOM(Depth, "Depth") michael@0: HTTP_ATOM(Destination, "Destination") michael@0: HTTP_ATOM(DoNotTrack, "DNT") michael@0: HTTP_ATOM(ETag, "Etag") michael@0: HTTP_ATOM(Expect, "Expect") michael@0: HTTP_ATOM(Expires, "Expires") michael@0: HTTP_ATOM(From, "From") michael@0: HTTP_ATOM(Host, "Host") michael@0: HTTP_ATOM(If, "If") michael@0: HTTP_ATOM(If_Match, "If-Match") michael@0: HTTP_ATOM(If_Modified_Since, "If-Modified-Since") michael@0: HTTP_ATOM(If_None_Match, "If-None-Match") michael@0: HTTP_ATOM(If_None_Match_Any, "If-None-Match-Any") michael@0: HTTP_ATOM(If_Range, "If-Range") michael@0: HTTP_ATOM(If_Unmodified_Since, "If-Unmodified-Since") michael@0: HTTP_ATOM(Keep_Alive, "Keep-Alive") michael@0: HTTP_ATOM(Last_Modified, "Last-Modified") michael@0: HTTP_ATOM(Lock_Token, "Lock-Token") michael@0: HTTP_ATOM(Link, "Link") michael@0: HTTP_ATOM(Location, "Location") michael@0: HTTP_ATOM(Max_Forwards, "Max-Forwards") michael@0: HTTP_ATOM(Overwrite, "Overwrite") michael@0: HTTP_ATOM(Pragma, "Pragma") michael@0: HTTP_ATOM(Prefer, "Prefer") michael@0: HTTP_ATOM(Proxy_Authenticate, "Proxy-Authenticate") michael@0: HTTP_ATOM(Proxy_Authorization, "Proxy-Authorization") michael@0: HTTP_ATOM(Proxy_Connection, "Proxy-Connection") michael@0: HTTP_ATOM(Range, "Range") michael@0: HTTP_ATOM(Referer, "Referer") michael@0: HTTP_ATOM(Retry_After, "Retry-After") michael@0: HTTP_ATOM(Server, "Server") michael@0: HTTP_ATOM(Set_Cookie, "Set-Cookie") michael@0: HTTP_ATOM(Set_Cookie2, "Set-Cookie2") michael@0: HTTP_ATOM(Status_URI, "Status-URI") michael@0: HTTP_ATOM(TE, "TE") michael@0: HTTP_ATOM(Title, "Title") michael@0: HTTP_ATOM(Timeout, "Timeout") michael@0: HTTP_ATOM(Trailer, "Trailer") michael@0: HTTP_ATOM(Transfer_Encoding, "Transfer-Encoding") michael@0: HTTP_ATOM(URI, "URI") michael@0: HTTP_ATOM(Upgrade, "Upgrade") michael@0: HTTP_ATOM(User_Agent, "User-Agent") michael@0: HTTP_ATOM(Vary, "Vary") michael@0: HTTP_ATOM(Version, "Version") michael@0: HTTP_ATOM(WWW_Authenticate, "WWW-Authenticate") michael@0: HTTP_ATOM(Warning, "Warning") michael@0: HTTP_ATOM(X_Firefox_Spdy, "X-Firefox-Spdy") michael@0: michael@0: // methods are case sensitive and do not use atom table