Creating a Custom HttpClient for a Proxy API in TypeScript
I have a HTTP proxy API (it's a RESTful API with a special payload and response, it's Zyte) that I want to use to make proxied HTTP requests. Rather than using the API via the
HttpClient in my application-adjacent code, I thought it might be nice to swap in a ZyteClient, which acts as a HttpClient and makes the proxying (somewhat) transparent (caveats being the API doesn't provide things like headers). Thoughts, pointers?