0

I'm wondering how can I load requests asynchronously with libmproxy or mitmproxy.

My code looks like this:

class StickyMaster(controller.Master):
    def __init__(self):
          ......

    def handle_request(self):
         ....

    def handle_response(self):
         ....
Dan
  • 829
  • 2
  • 12
  • 23

1 Answers1

1

I would recommend using mitproxy's inline scripts, which have a @concurrent decorator: http://docs.mitmproxy.org/en/latest/scripting/inlinescripts.html#running-scripts-in-parallel

Maximilian Hils
  • 6,309
  • 3
  • 27
  • 46
  • Hi ,Is it possible to call an asynchronous method in @concurrent, because I want to send a socket message after the response is filtered. – Alex Sep 23 '21 at 09:46