jonathonmcmurray / reQ

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

Make default behaviours more configurable #31

Closed jonathonmcmurray closed 4 years ago

jonathonmcmurray commented 4 years ago

Make it possible to disable parsing with a flag e.g. .req.PARSE (similar to .req.VERBOSE flag).

Also .req.SIGNAL for controlling signalling if HTTP error response received.

Possibly also allow defining a "custom parse" function that receives headers & body and can do whatever necessary.

Also, for .req.VERBOSE allow defining as an int i.e. a handle to write to, so it's possible to configure this to write to stderr instead of stdout etc. - ensure backwards compatibility, cast booleans to int