jonathonmcmurray / reQ

HTTP requests library in kdb+/q
http://jmcmurray.co.uk/reQ/
MIT License
38 stars 9 forks source link

Move decompression to before display for verbose mode #30

Closed jonathonmcmurray closed 4 years ago

jonathonmcmurray commented 4 years ago

Currently, decompression (i.e. gzip decompression in kdb 4.0+) happens in .req.parseresp, meaning that verbose mode shows compressed response.

Should be done in .req.send as soon as response is received.

Should also make it simple to plug in additional handlers for different Content-Encoding types, probably via a dictionary of handlers that can be extended by users.