1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>5.1.2 PythonPostReadRequestHandler</title>
5
<META NAME="description" CONTENT="5.1.2 PythonPostReadRequestHandler">
6
<META NAME="keywords" CONTENT="modpython">
7
<META NAME="resource-type" CONTENT="document">
8
<META NAME="distribution" CONTENT="global">
9
<link rel="STYLESHEET" href="modpython.css">
10
<link rel="first" href="modpython.html">
11
<link rel="contents" href="contents.html" title="Contents">
12
<link rel="index" href="genindex.html" title="Index">
13
<LINK REL="next" href="dir-handlers-th.html">
14
<LINK REL="previous" href="dir-handlers-syn.html">
15
<LINK REL="up" href="dir-handlers.html">
16
<LINK REL="next" href="dir-handlers-th.html">
19
<DIV CLASS="navigation">
20
<table align="center" width="100%" cellpadding="0" cellspacing="2">
22
<td><A href="dir-handlers-syn.html"><img src="icons/previous.gif"
23
border="0" height="32"
24
alt="Previous Page" width="32"></A></td>
25
<td><A href="dir-handlers.html"><img src="icons/up.gif"
26
border="0" height="32"
27
alt="Up One Level" width="32"></A></td>
28
<td><A href="dir-handlers-th.html"><img src="icons/next.gif"
29
border="0" height="32"
30
alt="Next Page" width="32"></A></td>
31
<td align="center" width="100%">Mod_python Manual</td>
32
<td><A href="contents.html"><img src="icons/contents.gif"
33
border="0" height="32"
34
alt="Contents" width="32"></A></td>
35
<td><img src="icons/blank.gif"
36
border="0" height="32"
37
alt="" width="32"></td>
38
<td><A href="genindex.html"><img src="icons/index.gif"
39
border="0" height="32"
40
alt="Index" width="32"></A></td>
42
<b class="navlabel">Previous:</b> <a class="sectref" href="dir-handlers-syn.html">5.1.1 Python*Handler Directive Syntax</A>
43
<b class="navlabel">Up:</b> <a class="sectref" href="dir-handlers.html">5.1 Request Handlers</A>
44
<b class="navlabel">Next:</b> <a class="sectref" href="dir-handlers-th.html">5.1.3 PythonTransHandler</A>
47
<!--End of Navigation Panel-->
49
<H2><A NAME="SECTION007120000000000000000"> </A>
50
<a name="l2h-223"> </a>
52
5.1.2 PythonPostReadRequestHandler
56
<b><em class="citetitle"><a
57
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Syntax"
60
<i>Python*Handler Syntax</i>
61
<BR><em class="citetitle"><a
62
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Context"
65
server config, virtual host
66
<BR><em class="citetitle"><a
67
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Override"
71
<BR><em class="citetitle"><a
72
href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Module"
78
This handler is called after the request has been read but before any
79
other phases have been processed. This is useful to make decisions
80
based upon the input header fields.
83
<div class="note"><b class="label">Note:</b>
84
When this phase of the request is processed, the URI has not yet
85
been translated into a path name, therefore this directive could never
86
be executed by Apache if it could specified within <code><Directory></code>,
87
<code><Location></code>, <code><File></code> directives or in an <span class="file">.htaccess</span>
88
file. The only place this directive is allowed is the main
89
configuration file, and the code for it will execute in the main
90
interpreter. And because this phase happens before any identification
91
of the type of content being requested is done (i.e. is this a python
92
program or a gif?), the python routine specified with this handler
93
will be called for <i>ALL</i> requests on this server (not just python
94
programs), which is an important consideration if performance is a
99
<a name="l2h-224"> </a>The handlers below are documented in order in
100
which phases are processed by Apache.
104
<DIV CLASS="navigation">
106
<table align="center" width="100%" cellpadding="0" cellspacing="2">
108
<td><A href="dir-handlers-syn.html"><img src="icons/previous.gif"
109
border="0" height="32"
110
alt="Previous Page" width="32"></A></td>
111
<td><A href="dir-handlers.html"><img src="icons/up.gif"
112
border="0" height="32"
113
alt="Up One Level" width="32"></A></td>
114
<td><A href="dir-handlers-th.html"><img src="icons/next.gif"
115
border="0" height="32"
116
alt="Next Page" width="32"></A></td>
117
<td align="center" width="100%">Mod_python Manual</td>
118
<td><A href="contents.html"><img src="icons/contents.gif"
119
border="0" height="32"
120
alt="Contents" width="32"></A></td>
121
<td><img src="icons/blank.gif"
122
border="0" height="32"
123
alt="" width="32"></td>
124
<td><A href="genindex.html"><img src="icons/index.gif"
125
border="0" height="32"
126
alt="Index" width="32"></A></td>
128
<b class="navlabel">Previous:</b> <a class="sectref" href="dir-handlers-syn.html">5.1.1 Python*Handler Directive Syntax</A>
129
<b class="navlabel">Up:</b> <a class="sectref" href="dir-handlers.html">5.1 Request Handlers</A>
130
<b class="navlabel">Next:</b> <a class="sectref" href="dir-handlers-th.html">5.1.3 PythonTransHandler</A>
132
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
134
<!--End of Navigation Panel-->