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
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