Use YARP to intercept all outbound requests of an app for testing purposes #2974
Replies: 1 comment
-
|
No, YARP is an L7 HTTP proxy. What are you trying to do with the intercepted requests? You'd have to intercept connections yourself (e.g. setting a proxy, redirecting the connection with the help of the OS, MITM software, etc.). And even if you do, you'd have to deal with how to process proxy requests or how to present the correct certs yourself. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I created an Aspire web app with its API project calling external resources (e.g. www.github.com).
I use
DistributedApplicationTestingBuilderand I want to take control of the app and intercept all outbound requests that are not made within the app-host umbrella (e.g. localhost).I don't want to use
HttpHandlerproxies I prefer to leave the app code untouched and rather perform it all in the testing projects.Can I achieve this with YARP? Any other alternatives otherwise?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions