mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 17:46:32 -04:00
This is just moving fields around. The end result is that there's a `transfer.req` and a `transfer.res`. On the Request side, we use to have a nested `params: RequestParam` resulting in a lot of `transfer.req.params.url`. This is now `transfer.req.url`. On the Response side, we had the exact opposite: response fields splattered directly in the transfer, `transfer.response_header`. This is now `transfer.res.header`. There is now an HttpClient.Response, which is the actual final response (which could be for a transfer or something else, e.g the cache). And an HttpClient.Transfer.Response which captures the inflight response data (and is one of the polymorphic variants of the HttpClient.Response). Probably still not ideal, but I'm not sure how to make it cleaner, and even if this is just an intermediary step, I consider it an small win.