def makeProxyClient(self, request, method=b"GET", headers=None,
                        requestBody=b""):
        if headers is None:
            headers = {b"accept": b"text/html"}
        path = b'/' + request.postpath
        return ProxyClient(
            method, path, b'HTTP/1.0', headers, requestBody, request)
Make a L{ProxyClient} object used for testing.
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_proxy.py/ProxyClientTests.makeProxyClient