How do I manage a proxy server from within another Python app? #6903
Unanswered
JJTech0130
asked this question in
Q&A
Replies: 2 comments 3 replies
-
|
I thing Addons are the solution, with addons you can include mitmproxy as a normal python library |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
The problem with Addons is that means that my app is driven by mitmproxy, right? As in, I would have to start |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would really like to be able to start, configure, and manage an HTTP proxy from within my Python application (built with Quart).
I don't think I can get what I want done with the
DumpManagerAPI, as it was giving me trouble and not giving me control over its execution (for example, it had trouble when the event loop changed out from under it due to Quart hot-reloading).Instead, I'm trying to directly use the
mitmproxy.proxyAPI, as exemplified by the test inmitmproxy.proxy.server. However, that only shows a "reverse" proxy, and I'm looking for a "normal" HTTP proxy and can't find any documentation on that.Are there any existing projects that implement this, or other places I could look for help? If not, what exactly do I need to setup to make this work: I assume I need to change the layers in
layer_stack, but I'm not sure what layers I would need.Beta Was this translation helpful? Give feedback.
All reactions