PyDocs

Nav

Internet Protocols and Support

BaseHandler

Manage the invocation of a WSGI application
Members of BaseHandler

_

_flush
Override in subclass to force sending of recent '_write()' calls
_write
Override in subclass to buffer data for send to client

a

add_cgi_vars
Override in subclass to insert CGI variables in 'self.environ'

e

error_body
The error response body.
error_headers
The HTTP headers used for error responses.
error_output
WSGI mini-app to create error output
error_status
The HTTP status used for error responses.

g

get_scheme
Return the URL scheme being used
get_stderr
Override in subclass to return suitable 'wsgi.errors'
get_stdin
Override in subclass to return suitable 'wsgi.input'

h

http_version
If origin_server is true, this string attribute is used to set the HTTP version of the response set to the client.

l

log_exception
Log the 'exc_info' tuple in the server log

o

origin_server
This attribute should be set to a true value if the handler’s _write() and _flush() are being used to communicate directly to the client, rather than via a CGI-like gateway protocol that wants the HT…
os_environ
The default environment variables to be included in every request’s WSGI environment.

r

run
Invoke the application

s

sendfile
Platform-specific file transmission
server_software
If the origin_server attribute is set, this attribute’s value is used to set the default SERVER_SOFTWARE WSGI environment variable, and also to set a default Server: header in HTTP responses.
setup_environ
Set up the environment for one request

t

traceback_limit
The maximum number of frames to include in tracebacks output by the default log_exception() method.

w

wsgi_file_wrapper
Wrapper to convert file-like objects to iterables
wsgi_multiprocess
The value to be used for the wsgi.multiprocess environment variable.
wsgi_multithread
The value to be used for the wsgi.multithread environment variable.
wsgi_run_once
The value to be used for the wsgi.run_once environment variable.
0 Examples
No examples for wsgiref.handlers/BaseHandler.
See Also
No see-alsos for wsgiref.handlers/BaseHandler
0 Notes
No notes for BaseHandler