Package wtf :: Package impl :: Module scgi :: Class Gateway
[hide private]
[frames] | no frames]

Class Gateway

source code

      object --+    
               |    
_gateway.Gateway --+
                   |
                  Gateway

SCGI implementation specific gateway
Instance Methods [hide private]
 
__init__(self, config, opts, args)
Initialization
source code
dict
_init_from_request(self, connection, request)
Create SCGI implementation specific request environment
source code
 
_detect_scheme_default(self, environ)
HTTPS environment scheme detector (SSL directly in gateway)
source code
 
_detect_scheme_remote_lighttpd(self, environ)
Scheme detector when lighttpd offloads SSL in the front of the GW
source code

Inherited from _gateway.Gateway: handle

Inherited from _gateway.Gateway (private): _populate_base_env

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

Instance Variables [hide private]

Inherited from _gateway.Gateway: args, config, opts

Inherited from _gateway.Gateway (private): _baseenv

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) - Configuration
  • opts (optparse.OptionContainer) - Command line options
  • args (list) - Positioned command line arguments
Overrides: object.__init__

_init_from_request(self, connection, request)

source code 
Create SCGI implementation specific request environment
Parameters:
  • connection - The connection the request is handled on
  • request - The request instance
Returns: dict
A tuple of the request env and a specific response starter (`(dict, callable))
Overrides: _gateway.Gateway._init_from_request

_detect_scheme_remote_lighttpd(self, environ)

source code 

Scheme detector when lighttpd offloads SSL in the front of the GW

The lighttpd acts as a HTTP proxy.