Back to index

lightning-sunbird  0.9+nobinonly
nsHttpAtomList.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1999
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Gagan Saksena <gagan@netscape.com> (original author)
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either the GNU General Public License Version 2 or later (the "GPL"), or
00027  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 /******
00040   This file contains the list of all HTTP atoms 
00041   See nsHttp.h for access to the atoms.
00042 
00043   It is designed to be used as inline input to nsHttp.cpp *only*
00044   through the magic of C preprocessing.
00045 
00046   All entries must be enclosed in the macro HTTP_ATOM which will have cruel
00047   and unusual things done to it.
00048 
00049   The first argument to HTTP_ATOM is the C++ name of the atom.
00050   The second argument to HTTP_ATOM is the string value of the atom.
00051  ******/
00052 
00053 HTTP_ATOM(Accept,                    "Accept")
00054 HTTP_ATOM(Accept_Charset,            "Accept-Charset")
00055 HTTP_ATOM(Accept_Encoding,           "Accept-Encoding")
00056 HTTP_ATOM(Accept_Language,           "Accept-Language")
00057 HTTP_ATOM(Accept_Ranges,             "Accept-Ranges")
00058 HTTP_ATOM(Age,                       "Age")
00059 HTTP_ATOM(Allow,                     "Allow")
00060 HTTP_ATOM(Authentication,            "Authentication")
00061 HTTP_ATOM(Authorization,             "Authorization")
00062 HTTP_ATOM(Cache_Control,             "Cache-Control")
00063 HTTP_ATOM(Connection,                "Connection")
00064 HTTP_ATOM(Content_Base,              "Content-Base")
00065 HTTP_ATOM(Content_Encoding,          "Content-Encoding")
00066 HTTP_ATOM(Content_Language,          "Content-Language")
00067 HTTP_ATOM(Content_Length,            "Content-Length")
00068 HTTP_ATOM(Content_Location,          "Content-Location")
00069 HTTP_ATOM(Content_MD5,               "Content-MD5")
00070 HTTP_ATOM(Content_Range,             "Content-Range")
00071 HTTP_ATOM(Content_Transfer_Encoding, "Content-Transfer-Encoding")
00072 HTTP_ATOM(Content_Type,              "Content-Type")
00073 HTTP_ATOM(Cookie,                    "Cookie")
00074 HTTP_ATOM(Date,                      "Date")
00075 HTTP_ATOM(DAV,                       "DAV")
00076 HTTP_ATOM(Depth,                     "Depth")
00077 HTTP_ATOM(Derived_From,              "Derived-From")
00078 HTTP_ATOM(Destination,               "Destination")
00079 HTTP_ATOM(ETag,                      "Etag")
00080 HTTP_ATOM(Expect,                    "Expect")
00081 HTTP_ATOM(Expires,                   "Expires")
00082 HTTP_ATOM(Forwarded,                 "Forwarded")
00083 HTTP_ATOM(From,                      "From")
00084 HTTP_ATOM(Host,                      "Host")
00085 HTTP_ATOM(If,                        "If")
00086 HTTP_ATOM(If_Match,                  "If-Match")
00087 HTTP_ATOM(If_Match_Any,              "If-Match-Any")
00088 HTTP_ATOM(If_Modified_Since,         "If-Modified-Since")
00089 HTTP_ATOM(If_None_Match,             "If-None-Match")
00090 HTTP_ATOM(If_None_Match_Any,         "If-None-Match-Any")
00091 HTTP_ATOM(If_Range,                  "If-Range")
00092 HTTP_ATOM(If_Unmodified_Since,       "If-Unmodified-Since")
00093 HTTP_ATOM(Keep_Alive,                "Keep-Alive")
00094 HTTP_ATOM(Last_Modified,             "Last-Modified")
00095 HTTP_ATOM(Lock_Token,                "Lock-Token")
00096 HTTP_ATOM(Link,                      "Link")
00097 HTTP_ATOM(Location,                  "Location")
00098 HTTP_ATOM(Max_Forwards,              "Max-Forwards")
00099 HTTP_ATOM(Message_Id,                "Message-Id")
00100 HTTP_ATOM(Mime,                      "Mime")
00101 HTTP_ATOM(Overwrite,                 "Overwrite")
00102 HTTP_ATOM(Pragma,                    "Pragma")
00103 HTTP_ATOM(Proxy_Authenticate,        "Proxy-Authenticate")
00104 HTTP_ATOM(Proxy_Authorization,       "Proxy-Authorization")
00105 HTTP_ATOM(Proxy_Connection,          "Proxy-Connection")
00106 HTTP_ATOM(Range,                     "Range")
00107 HTTP_ATOM(Referer,                   "Referer")
00108 HTTP_ATOM(Retry_After,               "Retry-After")
00109 HTTP_ATOM(Server,                    "Server")
00110 HTTP_ATOM(Set_Cookie,                "Set-Cookie")
00111 HTTP_ATOM(Set_Cookie2,               "Set-Cookie2")
00112 HTTP_ATOM(Status_URI,                "Status-URI")
00113 HTTP_ATOM(TE,                        "TE")
00114 HTTP_ATOM(Title,                     "Title")
00115 HTTP_ATOM(Timeout,                   "Timeout")
00116 HTTP_ATOM(Trailer,                   "Trailer")
00117 HTTP_ATOM(Transfer_Encoding,         "Transfer-Encoding")
00118 HTTP_ATOM(URI,                       "URI")
00119 HTTP_ATOM(Upgrade,                   "Upgrade")
00120 HTTP_ATOM(User_Agent,                "User-Agent")
00121 HTTP_ATOM(Vary,                      "Vary")
00122 HTTP_ATOM(Version,                   "Version")
00123 HTTP_ATOM(WWW_Authenticate,          "WWW-Authenticate")
00124 HTTP_ATOM(Warning,                   "Warning")
00125 
00126 // methods are atoms too.
00127 //
00128 // note: an uppercase DELETE causes compilation problems under msvc6, so we'll
00129 // just keep the methods mixedcase even though they're normally written all
00130 // uppercase -- darin
00131 
00132 HTTP_ATOM(Connect,                   "CONNECT")
00133 HTTP_ATOM(Copy,                      "COPY")
00134 HTTP_ATOM(Delete,                    "DELETE")
00135 HTTP_ATOM(Get,                       "GET")
00136 HTTP_ATOM(Head,                      "HEAD")
00137 HTTP_ATOM(Index,                     "INDEX")
00138 HTTP_ATOM(Lock,                      "LOCK")
00139 HTTP_ATOM(M_Post,                    "M-POST")
00140 HTTP_ATOM(Mkcol,                     "MKCOL")
00141 HTTP_ATOM(Move,                      "MOVE")
00142 HTTP_ATOM(Options,                   "OPTIONS")
00143 HTTP_ATOM(Post,                      "POST")
00144 HTTP_ATOM(Propfind,                  "PROPFIND")
00145 HTTP_ATOM(Proppatch,                 "PROPPATCH")
00146 HTTP_ATOM(Put,                       "PUT")
00147 HTTP_ATOM(Trace,                     "TRACE")
00148 HTTP_ATOM(Unlock,                    "UNLOCK")