How to access shared state from external process #1897
Unanswered
ptondereau
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Can you pass the state to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project with a Tauri app that starts an Axum server like this:
http-proxy
is a tiny HTTP proxy (catch-all) that just modify and adds some headers to intercepted requests.In shared state, I would like to provide a solution that bypass this interception when a flag is false or true like this:
and use it in my handler to early return untouched request. This way, it avoids IMHO start stop management of my proxy.
Do you know how to achieve this?
BTW, my first idea was to use channel, but I struggle a lot who is responsible for spawning tasks
Beta Was this translation helpful? Give feedback.
All reactions