1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>4.3.2.2 Request Members</title>
<META NAME="description" CONTENT="4.3.2.2 Request Members">
<META NAME="keywords" CONTENT="modpython">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<link rel="STYLESHEET" href="modpython.css">
<link rel="first" href="modpython.html">
<link rel="contents" href="contents.html" title="Contents">
<link rel="index" href="genindex.html" title="Index">
<LINK REL="previous" href="pyapi-mprequest-meth.html">
<LINK REL="up" href="pyapi-mprequest.html">
<LINK REL="next" href="pyapi-mpconn.html">
</head>
<body>
<DIV CLASS="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="pyapi-mprequest-meth.html"><img src="icons/previous.gif"
border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A href="pyapi-mprequest.html"><img src="icons/up.gif"
border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="pyapi-mpconn.html"><img src="icons/next.gif"
border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Mod_python Manual</td>
<td><A href="contents.html"><img src="icons/contents.gif"
border="0" height="32"
alt="Contents" width="32"></A></td>
<td><img src="icons/blank.gif"
border="0" height="32"
alt="" width="32"></td>
<td><A href="genindex.html"><img src="icons/index.gif"
border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-mprequest-meth.html">4.3.2.1 Request Methods</A>
<b class="navlabel">Up:</b> <a class="sectref" href="pyapi-mprequest.html">4.3.2 Request Object </A>
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-mpconn.html">4.3.3 Connection Object (mp_conn) </A>
<br><hr>
</DIV>
<!--End of Navigation Panel-->
<H3><A NAME="SECTION006322000000000000000"> </A>
<BR>
4.3.2.2 Request Members
</H3>
<P>
<dl><dt><b><a name="l2h-36"><tt class="member">connection</tt></a></b>
<dd>
A <code>connection</code> object associated with this request. See
Connection Object below for details.
<i>(Read-Only)</i>
</dl>
<P>
<dl><dt><b><a name="l2h-37"><tt class="member">server</tt></a></b>
<dd>
A server object associate with this request. See Server Object below
for details.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-38"><tt class="member">next</tt></a></b>
<dd>
If this is an internal redirect, the <code>request</code> object we redirect to.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-39"><tt class="member">prev</tt></a></b>
<dd>
If this is an internal redirect, the <code>request</code> object we redirect from.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-40"><tt class="member">main</tt></a></b>
<dd>
If this is a sub-request, pointer to the main request.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-41"><tt class="member">the_request</tt></a></b>
<dd>
String containing the first line of the request.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-42"><tt class="member">assbackwards</tt></a></b>
<dd>
Is this an HTTP/0.9 "simple" request?
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-43"><tt class="member">header_only</tt></a></b>
<dd>
A boolean value indicating HEAD request, as opposed to GET.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-44"><tt class="member">protocol</tt></a></b>
<dd>
Protocol, as given by the client, or "HTTP/0.9". Same as CGI <a class="envvar" name="l2h-75">SERVER_PROTOCOL</a>.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-45"><tt class="member">proto_num</tt></a></b>
<dd>
Integer. Number version of protocol; 1.1 = 1001
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-46"><tt class="member">request_time</tt></a></b>
<dd>
A long integer. When request started.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-47"><tt class="member">status_line</tt></a></b>
<dd>
Status line. E.g. "200 OK".
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-48"><tt class="member">method</tt></a></b>
<dd>
A string containing the method - 'GET', 'HEAD', 'POST', etc.
Same as CGI <a class="envvar" name="l2h-76">REQUEST_METHOD</a>.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-49"><tt class="member">method_number</tt></a></b>
<dd>
Integer containg the method number.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-50"><tt class="member">allowed</tt></a></b>
<dd>
Integer. A bitvector of the allowed methods. Used in relation with
METHOD_NOT_ALLOWED.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-51"><tt class="member">sent_body</tt></a></b>
<dd>
Integer. Byte count in stream is for body. (?)
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-52"><tt class="member">bytes_sent</tt></a></b>
<dd>
Long integer. Number of bytes sent.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-53"><tt class="member">mtime</tt></a></b>
<dd>
Long integer. Time the resource was last modified.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-54"><tt class="member">boundary</tt></a></b>
<dd>
String. Multipart/byteranges boundary.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-55"><tt class="member">range</tt></a></b>
<dd>
String. The <code>Range:</code> header.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-56"><tt class="member">clength</tt></a></b>
<dd>
Long integer. The "real" content length. (I.e. can only be used after
the content's been read?)
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-57"><tt class="member">remaining</tt></a></b>
<dd>
Long integer. Bytes left to read. (Only makes sense inside a read
operation.)
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-58"><tt class="member">read_length</tt></a></b>
<dd>
Long integer. Number of bytes read.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-59"><tt class="member">read_body</tt></a></b>
<dd>
Integer. How the request body should be read. (?)
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-60"><tt class="member">read_chunked</tt></a></b>
<dd>
Boolean. Read chunked transfer coding.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-61"><tt class="member">content_type</tt></a></b>
<dd>
String. The content type. Mod_python maintains an internal flag
(<tt class="member">_content_type_set</tt>) to keep track of whether
<tt class="member">content_type</tt> was set manually from within Python. The
publisher handler uses this flag; when <tt class="member">content_type</tt> isn't
set, it attempts to guess the content type by examining the
first few bytes of the output.
</dl>
<P>
<dl><dt><b><a name="l2h-62"><tt class="member">headers_in</tt></a></b>
<dd>
A table object containing headers sent by the client.
</dl>
<P>
<dl><dt><b><a name="l2h-63"><tt class="member">headers_out</tt></a></b>
<dd>
A <code>table</code> object representing the headers to be sent to the
client. Note that manipulating this table after the
<tt class="method">Request.send_http_headers()</tt> has been called is meaningless, since the
headers have already gone out to the client.
</dl>
<P>
<dl><dt><b><a name="l2h-64"><tt class="member">err_headers_out</tt></a></b>
<dd>
These headers get send with the error response, instead of
headers_out.
</dl>
<P>
<dl><dt><b><a name="l2h-65"><tt class="member">handler</tt></a></b>
<dd>
The hame of the handler currently being processed. In all cases with
mod_python, this should be "python-program".
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-66"><tt class="member">content_encoding</tt></a></b>
<dd>
String. Content encoding.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-67"><tt class="member">vlist_validator</tt></a></b>
<dd>
Integer. Variant list validator (if negotiated).
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-68"><tt class="member">no_cache</tt></a></b>
<dd>
Boolean. No cache if true.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-69"><tt class="member">no_local_copy</tt></a></b>
<dd>
Boolean. No local copy exists.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-70"><tt class="member">unparsed_uri</tt></a></b>
<dd>
The URL without any parsing performed.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-71"><tt class="member">uri</tt></a></b>
<dd>
The path portion of the URI.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-72"><tt class="member">filename</tt></a></b>
<dd>
String. File name being requested.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-73"><tt class="member">path_info</tt></a></b>
<dd>
String. What follows after the file name, but is before query args, if
anything. Same as CGI <a class="envvar" name="l2h-77">PATH_INFO</a>.
<i>(Read-Only</i>)
</dl>
<P>
<dl><dt><b><a name="l2h-74"><tt class="member">args</tt></a></b>
<dd>
String. Same as CGI <a class="envvar" name="l2h-78">QUERY_ARGS</a>.
<i>(Read-Only</i>)
</dl>
<P>
<DIV CLASS="navigation">
<p><hr>
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="pyapi-mprequest-meth.html"><img src="icons/previous.gif"
border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A href="pyapi-mprequest.html"><img src="icons/up.gif"
border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="pyapi-mpconn.html"><img src="icons/next.gif"
border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Mod_python Manual</td>
<td><A href="contents.html"><img src="icons/contents.gif"
border="0" height="32"
alt="Contents" width="32"></A></td>
<td><img src="icons/blank.gif"
border="0" height="32"
alt="" width="32"></td>
<td><A href="genindex.html"><img src="icons/index.gif"
border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="pyapi-mprequest-meth.html">4.3.2.1 Request Methods</A>
<b class="navlabel">Up:</b> <a class="sectref" href="pyapi-mprequest.html">4.3.2 Request Object </A>
<b class="navlabel">Next:</b> <a class="sectref" href="pyapi-mpconn.html">4.3.3 Connection Object (mp_conn) </A>
<hr>
<span class="release-info">Release 2.7.10, documentation updated on December 07, 2003.</span>
</DIV>
<!--End of Navigation Panel-->
</BODY>
</HTML>
|