Exemple #1
0
class ProxyProtocol(Protocol):
    """
    The protocol hooked on to a listening port.
    """

    protocol = "http"

    def __init__(self):
        from pappyproxy.http import HTTPProtocolProxy
        self.protocol_proxy = HTTPProtocolProxy()
        self.protocol_proxy.client_protocol = self

    def dataReceived(self, data):
        self.protocol_proxy.client_data_received(data)

    def connectionMade(self):
        self.protocol_proxy.client_connection_made(self)

    def connectionLost(self, reason):
        self.protocol_proxy.client_connection_lost(reason)
Exemple #2
0
class ProxyProtocol(Protocol):
    """
    The protocol hooked on to a listening port.
    """

    protocol = "http"

    def __init__(self):
        from pappyproxy.http import HTTPProtocolProxy
        self.protocol_proxy = HTTPProtocolProxy()
        self.protocol_proxy.client_protocol = self

    def dataReceived(self, data):
        self.protocol_proxy.client_data_received(data)

    def connectionMade(self):
        self.protocol_proxy.client_connection_made(self)

    def connectionLost(self, reason):
        self.protocol_proxy.client_connection_lost(reason)
Exemple #3
0
 def __init__(self):
     from pappyproxy.http import HTTPProtocolProxy
     self.protocol_proxy = HTTPProtocolProxy()
     self.protocol_proxy.client_protocol = self
Exemple #4
0
 def __init__(self):
     from pappyproxy.http import HTTPProtocolProxy
     self.protocol_proxy = HTTPProtocolProxy()
     self.protocol_proxy.client_protocol = self