trac.web.wsgi

class trac.web.wsgi.WSGIGateway(environ, stdin=<open file '<stdin>', mode 'r'>, stderr=<open file '<stderr>', mode 'w'>)

Bases: object

Abstract base class for WSGI servers or gateways.

Initialize the gateway object.

run(application)

Start the gateway with the given WSGI application.

wsgi_file_wrapper

alias of _FileWrapper

trac.web.wsgi.is_client_disconnect_exception(e)

Determines whether the exception was caused by a disconnecting client.

Return type:bool