# Path: restkit/contrib/wsgi_proxy.py
# ALLOWED_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE']
# BLOCK_SIZE = 4096 * 16
# WEBOB_ERROR = ("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.content_length = str(len(req.body));`` "
#         "req.get_response(proxy)")
# class Proxy(object):
# class TransparentProxy(Proxy):
# class HostProxy(Proxy):
#     def __init__(self, manager=None, allowed_methods=ALLOWED_METHODS,
#             strip_script_name=True,  **kwargs):
#     def extract_uri(self, environ):
#     def __call__(self, environ, start_response):
#     def extract_uri(self, environ):
#     def __init__(self, uri, **kwargs):
#     def extract_uri(self, environ):
# def get_config(local_config):
# def make_proxy(global_config, **local_config):
# def make_host_proxy(global_config, uri=None, **local_config):


import t
from _server_test import HOST, PORT
from restkit.contrib import wsgi_proxy
        from webob import Request
# -*- coding: utf-8 -*-
#
# This file is part of restkit released under the MIT license. 
# See the NOTICE for more information.


root_uri = "http://%s:%s" % (HOST, PORT)

def with_webob(func):
    def wrapper(*args, **kwargs):
        req = Request.blank('/')
        req.environ['SERVER_NAME'] = '%s:%s' % (HOST, PORT)
        return func(req)
    wrapper.func_name = func.func_name
    return wrapper

@with_webob
def test_001(req):
    req.path_info = '/query'

# Path: restkit/contrib/wsgi_proxy.py
# ALLOWED_METHODS = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE']
# BLOCK_SIZE = 4096 * 16
# WEBOB_ERROR = ("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.content_length = str(len(req.body));`` "
#         "req.get_response(proxy)")
# class Proxy(object):
# class TransparentProxy(Proxy):
# class HostProxy(Proxy):
#     def __init__(self, manager=None, allowed_methods=ALLOWED_METHODS,
#             strip_script_name=True,  **kwargs):
#     def extract_uri(self, environ):
#     def __call__(self, environ, start_response):
#     def extract_uri(self, environ):
#     def __init__(self, uri, **kwargs):
#     def extract_uri(self, environ):
# def get_config(local_config):
# def make_proxy(global_config, **local_config):
# def make_host_proxy(global_config, uri=None, **local_config):


# Path: tests/010-test-proxies.py
import t
from _server_test import HOST, PORT
from restkit.contrib import wsgi_proxy
        from webob import Request

# -*- coding: utf-8 -*-
#
# This file is part of restkit released under the MIT license. 
# See the NOTICE for more information.


root_uri = "http://%s:%s" % (HOST, PORT)

def with_webob(func):
    def wrapper(*args, **kwargs):
        req = Request.blank('/')
        req.environ['SERVER_NAME'] = '%s:%s' % (HOST, PORT)
        return func(req)
    wrapper.func_name = func.func_name
    return wrapper

@with_webob
def test_001(req):
    req.path_info = '/query'

    proxy = wsgi_proxy.Proxy()