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.connectionrequest.serverrequest.nextrequest.prevrequest.mainrequest.the_requestrequest.assbackwardsrequest.proxyreqrequest.header_onlyrequest.protocolrequest.proto_numrequest.hostnamerequest.request_timerequest.status_linerequest.statusrequest.methodrequest.method_numberrequest.allowedrequest.allowed_xmethodsrequest.allowed_methodsrequest.sent_bodyctrequest.bytes_sentrequest.mtimerequest.chunkedrequest.rangerequest.clengthrequest.remainingrequest.read_lengthrequest.read_bodyrequest.read_chunkedrequest.expecting_100request.headers_inrequest.headers_outrequest.err_headers_outrequest.subprocess_envrequest.notesrequest.phaserequest.interpreterrequest.content_typerequest.content_languagesrequest.handlerrequest.content_encodingrequest.vlist_validatorrequest.userrequest.ap_auth_typerequest.no_cacherequest.no_local_copyrequest.unparsed_urirequest.urirequest.filenamerequest.canonical_filenamerequest.path_inforequest.argsrequest.finforequest.parsed_urirequest.used_path_inforequest.eos_sentrequest.useragent_addrrequest.useragent_ip
- Request Methods
- Connection Object (mp_conn)
- Connection Methods
- Connection Members
connection.base_serverconnection.local_addrconnection.remote_addrconnection.client_addrconnection.remote_ipconnection.client_ipconnection.remote_hostconnection.remote_lognameconnection.abortedconnection.keepaliveconnection.double_reverseconnection.keepalivesconnection.local_ipconnection.local_hostconnection.idconnection.notes
- Filter Object (mp_filter)
- Filter Methods
- Filter Members
- Server Object (mp_server)
- Server Methods
- Server Members
server.defn_nameserver.defn_line_numberserver.server_adminserver.server_hostnameserver.namesserver.wild_namesserver.portserver.error_fnameserver.loglevelserver.is_virtualserver.timeoutserver.keep_alive_timeoutserver.keep_alive_maxserver.keep_aliveserver.pathserver.pathlenserver.limit_req_lineserver.limit_req_fieldsizeserver.limit_req_fields
util– Miscellaneous UtilitiesCookie– HTTP State ManagementSession– Session Management- Classes
Session()BaseSessionBaseSession.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()
DbmSessionFileSessionMemorySession
- 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