Package wtf :: Package impl :: Class ServerInterface
[hide private]
[frames] | no frames]

Class ServerInterface

source code

object --+
         |
        ServerInterface

Interface for WSGI server implementations
Instance Methods [hide private]
 
__init__(self, config, opts, args)
Initialization
source code
 
handle(self, accepted, application, flags)
Handle an accepted socket
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, config, opts, args)
(Constructor)

source code 
Initialization
Parameters:
  • config (wtf.config.Config) - The application config
  • opts (optparse.OptionContainer) - Command line option container
  • args (list) - Fixed commandline arguments
Overrides: object.__init__

handle(self, accepted, application, flags)

source code 
Handle an accepted socket
Parameters:
  • accepted (tuple) - The accepted socket, being a tuple of socket object and peername
  • application (callable) - The WSGI application to call
  • flags (FlagsInterface) - Worker flags