Skip to content

Ability to read web response streams #539

@matafonoff

Description

@matafonoff

There's a problem with REST service returning a lot of data using streaming - I have to use some intermediate caching before I can pass that stream somewhere.
It would be great if RestSharp could give me an ability to have read access to this stream without any caching.

I know that there's ResponseWriter property for this case, but stream is going to be closed as soon as webResponse.Close(); is executed inside Http.ExtractResponseData method.

I suggest adding some kind of a flag telling if webResponse.Close(); must be executed as implemented right now, or explicitly by some additional call.

I've created topic in google group.
link: https://groups.google.com/forum/#!topic/restsharp/xes9QuxwSHU

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions