code: def render(self, request):
          
          # set up and evaluate a connection to the target server
          if self.port == 80:
              host = self.host
          else:
              host = "%s:%d" % (self.host, self.port)
          request.requestHeaders.addRawHeader('host', host)
          request.content.seek(0, 0)
          qs = urlparse.urlparse(request.uri)[4]
          if qs:
              rest = self.path + '?' + qs
          else:
              rest = self.path
  
          global_self = self.getGlobalSelf()
  
          clientFactory = self.proxyClientFactoryClass(
              request.method, rest, request.clientproto,
              request.getAllHeaders(), request.content.read(), request,
              global_self  # this is new
          )
          self.reactor.connectTCP(self.host, self.port, clientFactory)
  
          return NOT_DONE_YET
docs: Render a request by forwarding it to the proxied server.