Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

processResponse support blob & Co #261

Closed
cbek opened this issue Apr 20, 2020 · 0 comments
Closed

processResponse support blob & Co #261

cbek opened this issue Apr 20, 2020 · 0 comments

Comments

@cbek
Copy link
Contributor

cbek commented Apr 20, 2020

Is your feature request related to a problem? Please describe.
Currently, processResponse supports only JSON or text as response object.
The fallback is a text object.
In few cases you would like to get a Blob or arrayBuffer.

Describe the solution you'd like
If the content-type is "application/json" or "text/plain" behavior will not change.
All other cases will return whole response object.
Check the PR:
#262

Describe alternatives you've considered

Additional context

cbek added a commit to cbek/restful-react that referenced this issue Apr 20, 2020
- if the content-type is "application/json" or "text/plain" behavior will not change.
- all other cases will return whole response object.
cbek added a commit to cbek/restful-react that referenced this issue Apr 21, 2020
- if the content-type is "application/json" or "text/plain" behavior will not change.
- all other cases will return whole response object.
cbek added a commit to cbek/restful-react that referenced this issue May 4, 2020
fabien0102 pushed a commit that referenced this issue May 4, 2020
- if the content-type is "application/json" or "text/plain" behavior will not change.
- all other cases will return whole response object.
fabien0102 pushed a commit that referenced this issue May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants