Trees | Index | Help |
---|
Package shttp :: Module http :: Class HTTPRequestHandler |
|
BaseRequestHandler
--+ |StreamRequestHandler
--+ |BaseHTTPRequestHandler
--+ |SimpleHTTPRequestHandler
--+ |CGIHTTPRequestHandler
--+ | HTTPRequestHandler
Method Summary | |
---|---|
Returns True if running the script is OK, False otherwise | |
Execute a CGI script. | |
Checks if the URI corresponds to a CGI or a Python Handler | |
Execute a CGI script. | |
setup(self)
| |
Translate a /-separated PATH to the local filename syntax. | |
Inherited from CGIHTTPRequestHandler | |
Serve a POST request. | |
Test whether argument path is an executable file. | |
Test whether argument path is a Python script. | |
Version of send_head that support CGI scripts | |
Inherited from SimpleHTTPRequestHandler | |
Copy all data between two file objects. | |
Serve a GET request. | |
Serve a HEAD request. | |
Guess the type of a file. | |
Helper to produce a directory listing (absent index.html). | |
Inherited from BaseHTTPRequestHandler | |
Return the client address formatted for logging. | |
Return the current date and time formatted for a message header. | |
Send the blank line ending the MIME headers. | |
Handle multiple requests if necessary. | |
Handle a single HTTP request. | |
Return the current time formatted for logging. | |
Log an error. | |
Log an arbitrary message. | |
Log an accepted request. | |
Parse a request (internal). | |
Send and log an error reply. | |
Send a MIME header. | |
Send the response header and log the response code. | |
Return the server software version string. | |
Inherited from StreamRequestHandler | |
| |
Inherited from BaseRequestHandler | |
|
Class Variable Summary | |
---|---|
Inherited from CGIHTTPRequestHandler | |
list |
cgi_directories = ['/cgi-bin', '/htbin']
|
bool |
have_fork = True
|
bool |
have_popen2 = True
|
bool |
have_popen3 = True
|
int |
rbufsize = 0 |
Inherited from SimpleHTTPRequestHandler | |
dict |
extensions_map = {'': 'application/octet-stream', '.obj'...
|
str |
server_version = 'SimpleHTTP/0.6'
|
Inherited from BaseHTTPRequestHandler | |
str |
error_message_format = '<head>\n<title>Error response</t...
|
list |
monthname = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'J...
|
str |
protocol_version = 'HTTP/1.0'
|
dict |
responses = {400: ('Bad request', 'Bad request syntax or...
|
str |
sys_version = 'Python/2.4.3'
|
list |
weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat',...
|
Inherited from StreamRequestHandler | |
int |
wbufsize = 0 |
Method Details |
---|
check_script_sanity(self, scriptname, scriptfile)Returns True if running the script is OK, False otherwise |
get_environ(self)Execute a CGI script. |
is_cgi(self)Checks if the URI corresponds to a CGI or a Python Handler
|
run_cgi(self)Execute a CGI script.
|
translate_path(self, path, root=None)Translate a /-separated PATH to the local filename syntax. Components that mean special things to the local file system (e.g. drive or directory names) are ignored. (XXX They should probably be diagnosed.) |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 | http://epydoc.sf.net |