Skip to content

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

Open
@hanzhumsft

Description

@hanzhumsft

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions