Package restkit :: Package contrib :: Module wsgi_proxy
[hide private]

Module wsgi_proxy

source code

Classes [hide private]
  Proxy
A proxy wich redirect the request to SERVER_NAME:SERVER_PORT and send HTTP_HOST header
  TransparentProxy
A proxy based on HTTP_HOST environ variable
  HostProxy
A proxy to redirect all request to a specific uri
Functions [hide private]
 
get_config(local_config)
parse paste config
source code
 
make_proxy(global_config, **local_config)
TransparentProxy entry_point
source code
 
make_host_proxy(global_config, uri=None, **local_config)
HostProxy entry_point
source code
Variables [hide private]
  ALLOWED_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE']
  BLOCK_SIZE = 65536
  WEBOB_ERROR = 'Content-Length is set to -1. This usually mean ...
  __package__ = 'restkit.contrib'
Variables Details [hide private]

WEBOB_ERROR

Value:
'Content-Length is set to -1. This usually mean that WebOb has already\
 parsed the content body. You should set the Content-Length header to \
the correct value before forwarding your request to the proxy: ``req.c\
ontent_length = str(len(req.body));`` req.get_response(proxy)'