0x1306e6d / tollgate

An API gateway for your microservice.
MIT License
6 stars 1 forks source link

Forward `HttpRequest`s in `UpstreamHttpService` instead of `Upstream` #116

Closed 0x1306e6d closed 3 years ago

0x1306e6d commented 3 years ago

Make Upstream as a kind of configuration class so that forward HttpRequests in UpstreamHttpService instead of Upstream. Remove forwarding logic from Upstream. It will manage settings of the upstream. Forwarding logic is moved to the UpstreamHttpService, but it's simple. Specific implementations such as exception mapping will be provided using SPI. This is the last step of migration in #112.