question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide access to response headers

See original GitHub issue

Hi, thanks for this library 😃

Is your feature request related to a problem? Please describe. I need access the X-Total-Count header for pagination, but no means seems to be provided.

Describe the solution you’d like I want to access response headers. I think processResponse should return headers too.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ysgkcommented, Nov 14, 2019

@fabien0102 Yes, I will make a PR.

0reactions
fabien0102commented, Apr 12, 2020

Closed by #254

Please tell me if this resolution works for you, if not, let’s find a better API all together!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access-Control-Allow-Headers - HTTP - MDN Web Docs
The Access-Control-Allow-Headers response header is used in response to a preflight request which includes the ...
Read more >
Reading response headers with Fetch API - Stack Overflow
In response to a cross-origin request, add 'Access-Control-Expose-Headers': '*' ...
Read more >
CORS and the Access-Control-Allow-Origin response header
The Access-Control-Allow-Origin header is included in the response from one website to a request originating from another website, and identifies the permitted ...
Read more >
Provide access to response headers in earlier link middleware
I was wondering if a solution might be to call observer.next({data}) with both headers and data instead: observer.next({data, headers}) . This ...
Read more >
Understanding response headers policies - Amazon CloudFront
When this setting is set to true , CloudFront adds the Access-Control-Allow-Credentials: true header in responses to CORS requests. Otherwise, CloudFront doesn' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found