Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make default behaviours more configurable #31

Closed
jonathonmcmurray opened this issue Jun 5, 2020 · 0 comments
Closed

Make default behaviours more configurable #31

jonathonmcmurray opened this issue Jun 5, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@jonathonmcmurray
Copy link
Owner

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

@jonathonmcmurray jonathonmcmurray added the enhancement New feature or request label Jun 5, 2020
@jonathonmcmurray jonathonmcmurray added this to the 0.2.0 milestone Jun 5, 2020
@jonathonmcmurray jonathonmcmurray self-assigned this Jun 5, 2020
jonathonmcmurray added a commit that referenced this issue Jun 5, 2020
Add configuration options for disabling automatic parsing of responses &
signalling on HTTP errors.

Additionally, allow verbose output to be output on arbitrary handles by
setting .req.VERBOSE to a handle; for backwards compatibility, with a boolean
output will still be written to stdout.
@jonathonmcmurray jonathonmcmurray added this to Done in 0.2.0 via automation Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
0.2.0
  
Done
Development

No branches or pull requests

1 participant