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

All Samples(9)  |  Call(0)  |  Derive(9)  |  Import(0)
HttpFilter is a marker class that may be utilized for dynamic gathering
of filter logic.

src/p/y/pyrox-0.4.5/examples/filter/simple_example.py   pyrox(Download)
class SimpleFilter(filtering.HttpFilter):
    """
    This is an example of a simple filter that simply prints out the
    user-agent value from the header
    """

src/p/y/pyrox-HEAD/examples/filter/simple_example.py   pyrox(Download)
class SimpleFilter(filtering.HttpFilter):
    """
    This is an example of a simple filter that simply prints out the
    user-agent value from the header
    """

src/p/y/pyrox-0.4.5/examples/filter/routing_example.py   pyrox(Download)
class RoutingFilter(filtering.HttpFilter):
    """
    This is an example on how to specify an upstream route when a request is
    intercepted.
    """

src/p/y/pyrox-HEAD/examples/filter/routing_example.py   pyrox(Download)
class RoutingFilter(filtering.HttpFilter):
    """
    This is an example on how to specify an upstream route when a request is
    intercepted.
    """

src/p/y/pyrox-HEAD/pyrox/stock_filters/sws.py   pyrox(Download)
class StaticWebServer(filtering.HttpFilter):
 
    @filtering.handles_request_head
    def on_request_head(self, request_message):
        user_agent_header = request_message.get_header('user-agent')

src/p/y/pyrox-0.4.5/pyrox/stock_filters/empty.py   pyrox(Download)
class EmptyFilter(filtering.HttpFilter):
    pass
 

src/p/y/pyrox-HEAD/pyrox/stock_filters/empty.py   pyrox(Download)
class EmptyFilter(filtering.HttpFilter):
    pass
 

src/p/y/pyrox-HEAD/tests/filtering/pipeline_test.py   pyrox(Download)
class TestFilterWithAllDecorators(filtering.HttpFilter):
 
    def __init__(self):
        self.on_req_head_called = False
        self.on_req_body_called = False

src/p/y/pyrox-0.4.5/tests/filtering/pipeline_test.py   pyrox(Download)
class TestFilterWithAllDecorators(filtering.HttpFilter):
 
    def __init__(self):
        self.on_req_head_called = False
        self.on_req_body_called = False