Skip to content

clone the response #15

@laszlokorte

Description

@laszlokorte

Currently if multiple subscribers subscribe to one http request all get the same response object.
Now if multiple subscribers (or somewhere in the chain) call response.json() (or other reading methods) an exception is throws because json() (and other methods) are only allowed be called just once on each response.

I propose that the original response object should be shareReplay()'ed by the driver and then cloned for each subscriber.

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