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

Please add interface to allow a second response stream to be specified when HTTP status code indicates error #110

Open
hanzhumsft opened this issue Mar 29, 2016 · 0 comments

Comments

@hanzhumsft
Copy link
Member

The web::http::http_request has a method to allow user set response stream which will be filled with response content. However, no matter whether the HTTP status code indicates success (e.g. 2xx) or error (4xx, 5xx), the response content is always stored in this response stream.

Ideally, if the response coming with 4xx is the error message that needs different treatment, it'd be better to store it to another stream so that the response stream setup for expected content is not polluted. Especially when the stream is part of a pipeline, its content being instantly going to the next stage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants