You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: