web.web.httpserver.StaticApp

Package web :: Package web :: Module httpserver :: Class StaticApp |
[hide private]
[frames] | no frames]

# Class StaticApp

source code

    SocketServer.BaseRequestHandler --+
                                      |
      SocketServer.StreamRequestHandler --+
                                          |
      BaseHTTPServer.BaseHTTPRequestHandler --+
                                              |
      SimpleHTTPServer.SimpleHTTPRequestHandler --+
                                                  |
                                                 StaticApp

WSGI application for serving static files.

Nested Classes | [hide private]
Inherited from `BaseHTTPServer.BaseHTTPRequestHandler`: `MessageClass`

Instance Methods | [hide private]
__init__(self, environ, start_response) | source code
send_response(self, status, msg=`'````'`) Send the response header and log the response code. | source code
send_header(self, name, value) Send a MIME header. | source code
end_headers(self) Send the blank line ending the MIME headers. | source code
log_message(*a) Log an arbitrary message. | source code
__iter__(self) | source code
Inherited from `SimpleHTTPServer.SimpleHTTPRequestHandler`: `copyfile`, `do_GET`, `do_HEAD`, `guess_type`, `list_directory`, `send_head`, `translate_path` Inherited from `BaseHTTPServer.BaseHTTPRequestHandler`: `address_string`, `date_time_string`, `handle`, `handle_one_request`, `log_date_time_string`, `log_error`, `log_request`, `parse_request`, `send_error`, `version_string` Inherited from `SocketServer.StreamRequestHandler`: `finish`, `setup`

Class Variables | [hide private]
Inherited from `SimpleHTTPServer.SimpleHTTPRequestHandler`: `extensions_map`, `server_version` Inherited from `BaseHTTPServer.BaseHTTPRequestHandler`: `default_request_version`, `error_content_type`, `error_message_format`, `monthname`, `protocol_version`, `responses`, `sys_version`, `weekdayname` Inherited from `SocketServer.StreamRequestHandler`: `rbufsize`, `wbufsize`

Method Details | [hide private]

### __init__(self, environ, start_response) (Constructor) | source code
Overrides: SocketServer.BaseRequestHandler.__init__

### send_response(self, status, msg=`'````'`) | source code
Send the response header and log the response code. Also send two standard headers with the server software version and the current date. Overrides: BaseHTTPServer.BaseHTTPRequestHandler.send_response (inherited documentation)

### send_header(self, name, value) | source code
Send a MIME header. Overrides: BaseHTTPServer.BaseHTTPRequestHandler.send_header (inherited documentation)

### end_headers(self) | source code
Send the blank line ending the MIME headers. Overrides: BaseHTTPServer.BaseHTTPRequestHandler.end_headers (inherited documentation)

### log_message(*a) | source code
Log an arbitrary message. This is used by all other logging functions. Override it if you have specific logging wishes. The first argument, FORMAT, is a format string for the message to be logged. If the format string contains any % escapes requiring parameters, they should be specified as subsequent arguments (it's just like printf!). The client host and current date/time are prefixed to every message. Overrides: BaseHTTPServer.BaseHTTPRequestHandler.log_message (inherited documentation)