Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

add raw $response to returned data structures #1

Open
glortho opened this issue May 17, 2017 · 3 comments
Open

add raw $response to returned data structures #1

glortho opened this issue May 17, 2017 · 3 comments
Assignees

Comments

@glortho
Copy link
Contributor

glortho commented May 17, 2017

right now, if you use getData to do something with the response from $get() or $list() you can't get to the original response

@glortho glortho self-assigned this May 22, 2017
@g45t345rt
Copy link
Contributor

g45t345rt commented Apr 17, 2019

That is kind of big issue.
You can't access response headers or any other response properties from within Jetset.

I think it's because of iso-fetch-stream returning response.json() correct me if I'm wrong
https://github.com/glortho/iso-fetch-stream/blob/26d12b77cf74e98b5fcb336d7ec3a4edd908c206/src/index.js#L55

What to do if I want to access number of results in the Content-Range response header? Hmm...
Rest Finale pagination: https://github.com/tommybananas/finale#pagination

@glortho
Copy link
Contributor Author

glortho commented Apr 17, 2019 via email

@g45t345rt
Copy link
Contributor

This looks like a lot of work for just a simple thing :s
I will think about it.

Thanks,
glortho

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants