(self, f, block=False)
Returns None if successful, or error message if not.
Returns None if successful, or error message if not.
Returns None if successful or error message if not .
def replay_request(self, f, block=False):
        """
            Returns None if successful, or error message if not.
        """
        if f.intercepting:
            return "Can't replay while intercepting..."
        if f.request.content == CONTENT_MISSING:
            return "Can't replay request with missing content..."
        if f.request:
            f.request._set_replay()
            if f.request.content:
                f.request.headers["Content-Length"] = [str(len(f.request.content))]
            f.response = None
            f.error = None
            self.process_new_request(f)
            rt = proxy.RequestReplayThread(
                    self.server.config,
                    f,
                    self.masterq,
                )
            rt.start() # pragma: no cover
            if block:
                rt.join()
def replay_request ( self , f , block = False ) : if f . intercepting : return "Can't replay while intercepting..." if f . request . content == CONTENT_MISSING : return "Can't replay request with missing content..." if f . request : f . request . _set_replay ( ) if f . request . content : f . request . headers [ "Content-Length" ] = [ str ( len ( f . request . content ) ) ] f . response = None f . error = None self . process_new_request ( f ) rt = proxy . RequestReplayThread ( self . server . config , f , self . masterq , ) rt . start ( ) # pragma: no cover if block : rt . join ( )