~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to modules/proxy/ajp_header.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Licensed to the Apache Software Foundation (ASF) under one or more
 
2
 * contributor license agreements.  See the NOTICE file distributed with
 
3
 * this work for additional information regarding copyright ownership.
 
4
 * The ASF licenses this file to You under the Apache License, Version 2.0
 
5
 * (the "License"); you may not use this file except in compliance with
 
6
 * the License.  You may obtain a copy of the License at
 
7
 *
 
8
 *     http://www.apache.org/licenses/LICENSE-2.0
 
9
 *
 
10
 * Unless required by applicable law or agreed to in writing, software
 
11
 * distributed under the License is distributed on an "AS IS" BASIS,
 
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
 
 
17
/**
 
18
 * @file ajp_header.h
 
19
 * @brief AJP defines
 
20
 *
 
21
 * @addtogroup AJP_defines
 
22
 * @{
 
23
 */
 
24
 
 
25
#ifndef AJP_HEADER_H
 
26
#define AJP_HEADER_H
 
27
 
 
28
/*
 
29
 * Conditional request attributes
 
30
 * 
 
31
 */
 
32
#define SC_A_CONTEXT            (unsigned char)1
 
33
#define SC_A_SERVLET_PATH       (unsigned char)2
 
34
#define SC_A_REMOTE_USER        (unsigned char)3
 
35
#define SC_A_AUTH_TYPE          (unsigned char)4
 
36
#define SC_A_QUERY_STRING       (unsigned char)5
 
37
#define SC_A_JVM_ROUTE          (unsigned char)6
 
38
#define SC_A_SSL_CERT           (unsigned char)7
 
39
#define SC_A_SSL_CIPHER         (unsigned char)8
 
40
#define SC_A_SSL_SESSION        (unsigned char)9
 
41
#define SC_A_REQ_ATTRIBUTE      (unsigned char)10
 
42
#define SC_A_SSL_KEY_SIZE       (unsigned char)11       /* only in if JkOptions +ForwardKeySize */
 
43
#define SC_A_SECRET             (unsigned char)12
 
44
#define SC_A_ARE_DONE           (unsigned char)0xFF
 
45
 
 
46
/*
 
47
 * Request methods, coded as numbers instead of strings.
 
48
 * The list of methods was taken from Section 5.1.1 of RFC 2616,
 
49
 * RFC 2518, the ACL IETF draft, and the DeltaV IESG Proposed Standard.
 
50
 *          Method        = "OPTIONS"
 
51
 *                        | "GET"    
 
52
 *                        | "HEAD"   
 
53
 *                        | "POST"   
 
54
 *                        | "PUT"    
 
55
 *                        | "DELETE" 
 
56
 *                        | "TRACE"  
 
57
 *                        | "PROPFIND"
 
58
 *                        | "PROPPATCH"
 
59
 *                        | "MKCOL"
 
60
 *                        | "COPY"
 
61
 *                        | "MOVE"
 
62
 *                        | "LOCK"
 
63
 *                        | "UNLOCK"
 
64
 *                        | "ACL"
 
65
 *                        | "REPORT"
 
66
 *                        | "VERSION-CONTROL"
 
67
 *                        | "CHECKIN"
 
68
 *                        | "CHECKOUT"
 
69
 *                        | "UNCHECKOUT"
 
70
 *                        | "SEARCH"
 
71
 *                        | "MKWORKSPACE"
 
72
 *                        | "UPDATE"
 
73
 *                        | "LABEL"
 
74
 *                        | "MERGE"
 
75
 *                        | "BASELINE-CONTROL"
 
76
 *                        | "MKACTIVITY"
 
77
 * 
 
78
 */
 
79
#define SC_M_OPTIONS            (unsigned char)1
 
80
#define SC_M_GET                (unsigned char)2
 
81
#define SC_M_HEAD               (unsigned char)3
 
82
#define SC_M_POST               (unsigned char)4
 
83
#define SC_M_PUT                (unsigned char)5
 
84
#define SC_M_DELETE             (unsigned char)6
 
85
#define SC_M_TRACE              (unsigned char)7
 
86
#define SC_M_PROPFIND           (unsigned char)8
 
87
#define SC_M_PROPPATCH          (unsigned char)9
 
88
#define SC_M_MKCOL              (unsigned char)10
 
89
#define SC_M_COPY               (unsigned char)11
 
90
#define SC_M_MOVE               (unsigned char)12
 
91
#define SC_M_LOCK               (unsigned char)13
 
92
#define SC_M_UNLOCK             (unsigned char)14
 
93
#define SC_M_ACL                (unsigned char)15
 
94
#define SC_M_REPORT             (unsigned char)16
 
95
#define SC_M_VERSION_CONTROL    (unsigned char)17
 
96
#define SC_M_CHECKIN            (unsigned char)18
 
97
#define SC_M_CHECKOUT           (unsigned char)19
 
98
#define SC_M_UNCHECKOUT         (unsigned char)20
 
99
#define SC_M_SEARCH             (unsigned char)21
 
100
#define SC_M_MKWORKSPACE        (unsigned char)22
 
101
#define SC_M_UPDATE             (unsigned char)23
 
102
#define SC_M_LABEL              (unsigned char)24
 
103
#define SC_M_MERGE              (unsigned char)25
 
104
#define SC_M_BASELINE_CONTROL   (unsigned char)26
 
105
#define SC_M_MKACTIVITY         (unsigned char)27
 
106
 
 
107
 
 
108
/*
 
109
 * Frequent request headers, these headers are coded as numbers
 
110
 * instead of strings.
 
111
 * 
 
112
 * Accept
 
113
 * Accept-Charset
 
114
 * Accept-Encoding
 
115
 * Accept-Language
 
116
 * Authorization
 
117
 * Connection
 
118
 * Content-Type
 
119
 * Content-Length
 
120
 * Cookie
 
121
 * Cookie2
 
122
 * Host
 
123
 * Pragma
 
124
 * Referer
 
125
 * User-Agent
 
126
 * 
 
127
 */
 
128
 
 
129
#define SC_ACCEPT               (unsigned short)0xA001
 
130
#define SC_ACCEPT_CHARSET       (unsigned short)0xA002
 
131
#define SC_ACCEPT_ENCODING      (unsigned short)0xA003
 
132
#define SC_ACCEPT_LANGUAGE      (unsigned short)0xA004
 
133
#define SC_AUTHORIZATION        (unsigned short)0xA005
 
134
#define SC_CONNECTION           (unsigned short)0xA006
 
135
#define SC_CONTENT_TYPE         (unsigned short)0xA007
 
136
#define SC_CONTENT_LENGTH       (unsigned short)0xA008
 
137
#define SC_COOKIE               (unsigned short)0xA009    
 
138
#define SC_COOKIE2              (unsigned short)0xA00A
 
139
#define SC_HOST                 (unsigned short)0xA00B
 
140
#define SC_PRAGMA               (unsigned short)0xA00C
 
141
#define SC_REFERER              (unsigned short)0xA00D
 
142
#define SC_USER_AGENT           (unsigned short)0xA00E
 
143
 
 
144
/*
 
145
 * Frequent response headers, these headers are coded as numbers
 
146
 * instead of strings.
 
147
 * 
 
148
 * Content-Type
 
149
 * Content-Language
 
150
 * Content-Length
 
151
 * Date
 
152
 * Last-Modified
 
153
 * Location
 
154
 * Set-Cookie
 
155
 * Servlet-Engine
 
156
 * Status
 
157
 * WWW-Authenticate
 
158
 * 
 
159
 */
 
160
 
 
161
#define SC_RESP_CONTENT_TYPE        (unsigned short)0xA001
 
162
#define SC_RESP_CONTENT_LANGUAGE    (unsigned short)0xA002
 
163
#define SC_RESP_CONTENT_LENGTH      (unsigned short)0xA003
 
164
#define SC_RESP_DATE                (unsigned short)0xA004
 
165
#define SC_RESP_LAST_MODIFIED       (unsigned short)0xA005
 
166
#define SC_RESP_LOCATION            (unsigned short)0xA006
 
167
#define SC_RESP_SET_COOKIE          (unsigned short)0xA007
 
168
#define SC_RESP_SET_COOKIE2         (unsigned short)0xA008
 
169
#define SC_RESP_SERVLET_ENGINE      (unsigned short)0xA009
 
170
#define SC_RESP_STATUS              (unsigned short)0xA00A
 
171
#define SC_RESP_WWW_AUTHENTICATE    (unsigned short)0xA00B
 
172
#define SC_RES_HEADERS_NUM          11
 
173
 
 
174
#endif /* AJP_HEADER_H */
 
175
/** @} */