netwerk/protocol/http/nsHttpAtomList.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/protocol/http/nsHttpAtomList.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,90 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +/******
    1.10 +  This file contains the list of all HTTP atoms
    1.11 +  See nsHttp.h for access to the atoms.
    1.12 +
    1.13 +  It is designed to be used as inline input to nsHttp.cpp *only*
    1.14 +  through the magic of C preprocessing.
    1.15 +
    1.16 +  All entries must be enclosed in the macro HTTP_ATOM which will have cruel
    1.17 +  and unusual things done to it.
    1.18 +
    1.19 +  The first argument to HTTP_ATOM is the C++ name of the atom.
    1.20 +  The second argument to HTTP_ATOM is the string value of the atom.
    1.21 + ******/
    1.22 +
    1.23 +HTTP_ATOM(Accept,                    "Accept")
    1.24 +HTTP_ATOM(Accept_Encoding,           "Accept-Encoding")
    1.25 +HTTP_ATOM(Accept_Language,           "Accept-Language")
    1.26 +HTTP_ATOM(Accept_Ranges,             "Accept-Ranges")
    1.27 +HTTP_ATOM(Age,                       "Age")
    1.28 +HTTP_ATOM(Allow,                     "Allow")
    1.29 +HTTP_ATOM(Assoc_Req,                 "Assoc-Req")
    1.30 +HTTP_ATOM(Authentication,            "Authentication")
    1.31 +HTTP_ATOM(Authorization,             "Authorization")
    1.32 +HTTP_ATOM(Cache_Control,             "Cache-Control")
    1.33 +HTTP_ATOM(Connection,                "Connection")
    1.34 +HTTP_ATOM(Content_Disposition,       "Content-Disposition")
    1.35 +HTTP_ATOM(Content_Encoding,          "Content-Encoding")
    1.36 +HTTP_ATOM(Content_Language,          "Content-Language")
    1.37 +HTTP_ATOM(Content_Length,            "Content-Length")
    1.38 +HTTP_ATOM(Content_Location,          "Content-Location")
    1.39 +HTTP_ATOM(Content_MD5,               "Content-MD5")
    1.40 +HTTP_ATOM(Content_Range,             "Content-Range")
    1.41 +HTTP_ATOM(Content_Type,              "Content-Type")
    1.42 +HTTP_ATOM(Cookie,                    "Cookie")
    1.43 +HTTP_ATOM(Date,                      "Date")
    1.44 +HTTP_ATOM(DAV,                       "DAV")
    1.45 +HTTP_ATOM(Depth,                     "Depth")
    1.46 +HTTP_ATOM(Destination,               "Destination")
    1.47 +HTTP_ATOM(DoNotTrack,                "DNT")
    1.48 +HTTP_ATOM(ETag,                      "Etag")
    1.49 +HTTP_ATOM(Expect,                    "Expect")
    1.50 +HTTP_ATOM(Expires,                   "Expires")
    1.51 +HTTP_ATOM(From,                      "From")
    1.52 +HTTP_ATOM(Host,                      "Host")
    1.53 +HTTP_ATOM(If,                        "If")
    1.54 +HTTP_ATOM(If_Match,                  "If-Match")
    1.55 +HTTP_ATOM(If_Modified_Since,         "If-Modified-Since")
    1.56 +HTTP_ATOM(If_None_Match,             "If-None-Match")
    1.57 +HTTP_ATOM(If_None_Match_Any,         "If-None-Match-Any")
    1.58 +HTTP_ATOM(If_Range,                  "If-Range")
    1.59 +HTTP_ATOM(If_Unmodified_Since,       "If-Unmodified-Since")
    1.60 +HTTP_ATOM(Keep_Alive,                "Keep-Alive")
    1.61 +HTTP_ATOM(Last_Modified,             "Last-Modified")
    1.62 +HTTP_ATOM(Lock_Token,                "Lock-Token")
    1.63 +HTTP_ATOM(Link,                      "Link")
    1.64 +HTTP_ATOM(Location,                  "Location")
    1.65 +HTTP_ATOM(Max_Forwards,              "Max-Forwards")
    1.66 +HTTP_ATOM(Overwrite,                 "Overwrite")
    1.67 +HTTP_ATOM(Pragma,                    "Pragma")
    1.68 +HTTP_ATOM(Prefer,                    "Prefer")
    1.69 +HTTP_ATOM(Proxy_Authenticate,        "Proxy-Authenticate")
    1.70 +HTTP_ATOM(Proxy_Authorization,       "Proxy-Authorization")
    1.71 +HTTP_ATOM(Proxy_Connection,          "Proxy-Connection")
    1.72 +HTTP_ATOM(Range,                     "Range")
    1.73 +HTTP_ATOM(Referer,                   "Referer")
    1.74 +HTTP_ATOM(Retry_After,               "Retry-After")
    1.75 +HTTP_ATOM(Server,                    "Server")
    1.76 +HTTP_ATOM(Set_Cookie,                "Set-Cookie")
    1.77 +HTTP_ATOM(Set_Cookie2,               "Set-Cookie2")
    1.78 +HTTP_ATOM(Status_URI,                "Status-URI")
    1.79 +HTTP_ATOM(TE,                        "TE")
    1.80 +HTTP_ATOM(Title,                     "Title")
    1.81 +HTTP_ATOM(Timeout,                   "Timeout")
    1.82 +HTTP_ATOM(Trailer,                   "Trailer")
    1.83 +HTTP_ATOM(Transfer_Encoding,         "Transfer-Encoding")
    1.84 +HTTP_ATOM(URI,                       "URI")
    1.85 +HTTP_ATOM(Upgrade,                   "Upgrade")
    1.86 +HTTP_ATOM(User_Agent,                "User-Agent")
    1.87 +HTTP_ATOM(Vary,                      "Vary")
    1.88 +HTTP_ATOM(Version,                   "Version")
    1.89 +HTTP_ATOM(WWW_Authenticate,          "WWW-Authenticate")
    1.90 +HTTP_ATOM(Warning,                   "Warning")
    1.91 +HTTP_ATOM(X_Firefox_Spdy,            "X-Firefox-Spdy")
    1.92 +
    1.93 +// methods are case sensitive and do not use atom table

mercurial