Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Routes the request that this event is related to. Usage of this method will
halt execution of the filter pipeline and begin streaming the request to
the specified upstream target. This method is invalid for handling an
upstream response.

:param upstream_target: the URI string of the upstream target to route
                        to.

        def route(upstream_target):
    """
    Routes the request that this event is related to. Usage of this method will
    halt execution of the filter pipeline and begin streaming the request to
    the specified upstream target. This method is invalid for handling an
    upstream response.

    :param upstream_target: the URI string of the upstream target to route
                            to.
    """
    return FilterAction(ROUTE, upstream_target)
        


src/p/y/pyrox-0.4.5/examples/filter/routing_example.py   pyrox(Download)
    def on_request_head(self, request_message):
        return filtering.route('http://google.com:80')
 

src/p/y/pyrox-HEAD/examples/filter/routing_example.py   pyrox(Download)
    def on_request_head(self, request_message):
        return filtering.route('http://google.com:80')