Mod_python Documentation¶
This document aims to be the only necessary and authoritative source of information about mod_python, usable as a comprehensive reference, a user guide and a tutorial all-in-one.
See also
- Python Language Web Site
for information on the Python language
- Apache HTTP Server Project Web Site
for information on the Apache server
- Introduction
- Installation
- Tutorial
- Python API
- Multiple Interpreters
- Overview of a Request Handler
- Overview of a Filter Handler
- Overview of a Connection Handler
apache
– Access to Apache Internals.- Functions
- Attributes
- Table Object (mp_table)
- Request Object
- Request Methods
request.add_cgi_vars()
request.add_common_vars()
request.add_handler()
request.add_input_filter()
request.add_output_filter()
request.allow_methods()
request.auth_name()
request.auth_type()
request.construct_url()
request.discard_request_body()
request.document_root()
request.get_basic_auth_pw()
request.get_config()
request.get_remote_host()
request.get_options()
request.internal_redirect()
request.is_https()
request.log_error()
request.meets_conditions()
request.requires()
request.read()
request.readline()
request.readlines()
request.register_cleanup()
request.register_input_filter()
request.register_output_filter()
request.sendfile()
request.set_etag()
request.set_last_modified()
request.ssl_var_lookup()
request.update_mtime()
request.write()
request.flush()
request.set_content_length()
- Request Members
request.connection
request.server
request.next
request.prev
request.main
request.the_request
request.assbackwards
request.proxyreq
request.header_only
request.protocol
request.proto_num
request.hostname
request.request_time
request.status_line
request.status
request.method
request.method_number
request.allowed
request.allowed_xmethods
request.allowed_methods
request.sent_bodyct
request.bytes_sent
request.mtime
request.chunked
request.range
request.clength
request.remaining
request.read_length
request.read_body
request.read_chunked
request.expecting_100
request.headers_in
request.headers_out
request.err_headers_out
request.subprocess_env
request.notes
request.phase
request.interpreter
request.content_type
request.content_languages
request.handler
request.content_encoding
request.vlist_validator
request.user
request.ap_auth_type
request.no_cache
request.no_local_copy
request.unparsed_uri
request.uri
request.filename
request.canonical_filename
request.path_info
request.args
request.finfo
request.parsed_uri
request.used_path_info
request.eos_sent
request.useragent_addr
request.useragent_ip
- Request Methods
- Connection Object (mp_conn)
- Connection Methods
- Connection Members
connection.base_server
connection.local_addr
connection.remote_addr
connection.client_addr
connection.remote_ip
connection.client_ip
connection.remote_host
connection.remote_logname
connection.aborted
connection.keepalive
connection.double_reverse
connection.keepalives
connection.local_ip
connection.local_host
connection.id
connection.notes
- Filter Object (mp_filter)
- Filter Methods
- Filter Members
- Server Object (mp_server)
- Server Methods
- Server Members
server.defn_name
server.defn_line_number
server.server_admin
server.server_hostname
server.names
server.wild_names
server.port
server.error_fname
server.loglevel
server.is_virtual
server.timeout
server.keep_alive_timeout
server.keep_alive_max
server.keep_alive
server.path
server.pathlen
server.limit_req_line
server.limit_req_fieldsize
server.limit_req_fields
util
– Miscellaneous UtilitiesCookie
– HTTP State ManagementSession
– Session Management- Classes
Session()
BaseSession
BaseSession.is_new()
BaseSession.id()
BaseSession.created()
BaseSession.last_accessed()
BaseSession.timeout()
BaseSession.set_timeout()
BaseSession.invalidate()
BaseSession.load()
BaseSession.save()
BaseSession.delete()
BaseSession.init_lock()
BaseSession.lock()
BaseSession.unlock()
BaseSession.cleanup()
DbmSession
FileSession
MemorySession
- Examples
- Classes
psp
– Python Server Pagerhttpdconf
– HTTPd Configuration
- Apache Configuration Directives
- Request Handlers
- Python*Handler Directive Syntax
- Python*Handlers and Python path
- PythonPostReadRequestHandler
- PythonTransHandler
- PythonHeaderParserHandler
- PythonInitHandler
- PythonAccessHandler
- PythonAuthenHandler
- PythonAuthzHandler
- PythonTypeHandler
- PythonFixupHandler
- PythonHandler
- PythonLogHandler
- PythonCleanupHandler
- Filters
- Connection Handler
- Other Directives
- Request Handlers
- Standard Handlers
- Command Line Tool - mod_python
- Server Side Includes
- Changes
- History and License
- About these documents
- Copyright