コード例 #1
0
ファイル: misc.py プロジェクト: roglew/pappy-proxy
 def __init__(self):
     InterceptMacro.__init__(self)
     self.name = 'Pappy Interceptor Macro'
     self.intercept_requests = False
     self.intercept_responses = False
     self.async_req = False
     self.async_rsp = False
コード例 #2
0
 def __init__(self):
     InterceptMacro.__init__(self)
     self.name = 'Pappy Interceptor Macro'
     self.intercept_requests = False
     self.intercept_responses = False
     self.async_req = False
     self.async_rsp = False
コード例 #3
0
    def __init__(self, new_req=None, new_rsp=None):
        InterceptMacro.__init__(self)

        self.new_req = None
        self.new_rsp = None
        if new_req:
            self.intercept_requests = True
            self.new_req = new_req
        if new_rsp:
            self.intercept_responses = True
            self.new_rsp = new_rsp
コード例 #4
0
ファイル: test_http_proxy.py プロジェクト: roglew/pappy-proxy
    def __init__(self, new_req=None, new_rsp=None):
        InterceptMacro.__init__(self)

        self.new_req = None
        self.new_rsp = None
        if new_req:
            self.intercept_requests = True
            self.new_req = new_req
        if new_rsp:
            self.intercept_responses = True
            self.new_rsp = new_rsp