Sample creating a .NET Core / C# Reverse Proxy with library ProxyKit
Url: https://localhost:44343/api/values2
Response:
[ "FRED","value2","7/17/2019","7/17/2019 10:36:42 PM" ]
Calling the following url https://localhost:44338/api/values2
will
- Add the header "tutu": 'tutu-string'
- Call the AWebApi endpoint Url:
https://localhost:44343/api/values2
- The tutu header value is detected by the endpoint and added to the list of values returned
- Update JSON reponse and add the string "added-on-the-fly" to the list of values
- Add the header "headerfinal": '123'
[ "FRED","value2","7/17/2019","7/17/2019 10:39:24 PM","tutu-string","added-on-the-fly" ]
Reverse proxy source code Startup.cs