~ubuntu-branches/ubuntu/karmic/libapache2-mod-python/karmic-updates

« back to all changes in this revision

Viewing changes to doc-html/dir-handlers-prrh.html

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-09-06 20:27:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040906202757-yzpyu1bcabgpjtiu
Tags: upstream-3.1.3
ImportĀ upstreamĀ versionĀ 3.1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
2
<html>
 
3
<head>
 
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">
 
17
</head>
 
18
<body>
 
19
<DIV CLASS="navigation">
 
20
<table align="center" width="100%" cellpadding="0" cellspacing="2">
 
21
<tr>
 
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>
 
41
</tr></table>
 
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>
 
45
<br><hr>
 
46
</DIV>
 
47
<!--End of Navigation Panel-->
 
48
 
 
49
<H2><A NAME="SECTION007120000000000000000">&nbsp;</A>
 
50
<a name="l2h-223">&nbsp;</a>
 
51
<BR>
 
52
5.1.2 PythonPostReadRequestHandler
 
53
</H2>
 
54
 
 
55
<P>
 
56
<b><em class="citetitle"><a
 
57
 href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Syntax"
 
58
 title="Syntax:"
 
59
 >Syntax:</a></em></b>
 
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"
 
63
 title="Context:"
 
64
 >Context:</a></em>
 
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"
 
68
 title="Override:"
 
69
 >Override:</a></em>
 
70
not None
 
71
<BR><em class="citetitle"><a
 
72
 href="http://httpd.apache.org/docs-2.0/mod/directive-dict.html#Module"
 
73
 title="Module:"
 
74
 >Module:</a></em>
 
75
mod_python.c
 
76
 
 
77
<P>
 
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.
 
81
 
 
82
<P>
 
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>&lt;Directory&gt;</code>,
 
87
<code>&lt;Location&gt;</code>, <code>&lt;File&gt;</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
 
95
priority.
 
96
</div>
 
97
 
 
98
<P>
 
99
<a name="l2h-224">&nbsp;</a>The handlers below are documented in order in
 
100
which phases are processed by Apache.
 
101
 
 
102
<P>
 
103
 
 
104
<DIV CLASS="navigation">
 
105
<p><hr>
 
106
<table align="center" width="100%" cellpadding="0" cellspacing="2">
 
107
<tr>
 
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>
 
127
</tr></table>
 
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>
 
131
<hr>
 
132
<span class="release-info">Release 3.1.3, documentation updated on February 17, 2004.</span>
 
133
</DIV>
 
134
<!--End of Navigation Panel-->
 
135
 
 
136
</BODY>
 
137
</HTML>