Gzip Compression with NancyFX
I was looking at the size of the payloads in my web api and thought it would be worth investigating if adding HTTP compression via gzip would be worthwhile. After a quick search, I found a post by Simon Cropp back from 2011. This was a good starting point, however how you wired it up with Nancy current day (1.4.3) is a bit different. Compressing I’ve basically taken Simon’s code and added it to a new class that implements IApplicationStartup. There are a few checks that occur before compressing the output. Does the incoming request accept header contain gzip? Is the outgoing HTTP… Read More »Gzip Compression with NancyFX