-
-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Description
When emulating http requests as a proxy one might be in a situation where the server encodes a response even though the original client did not expect that. Either because it didn't request encoding at all or because it didn't support the one selected.
Originally we tried to solve this by having a hacky solution using the decompression layer and make it work in a lazy manner for these use cases. This is however a hack as it was always compressing and is mixing logic where it shouldn't. It also introduced yet another marker type.
A better solution is to instead have a CompressionAdapter layer which can not only decompress but also compress in case there is a kind of compression supported.