fetch icon indicating copy to clipboard operation
fetch copied to clipboard

Add access to request and response headers

Open Matthewnie opened this issue 5 years ago • 3 comments

Needed ability to add headers to requests, this can now be done with .header() which I found in version 0.3.0.

Also needed to be able to access the response headers in order to use wordpress pagination params.

Description

(please provide us with clear instructions on how you verified your changes work)

Checklist

  • [ ] Bug fix?
  • [x] New feature?
  • [ ] Deprecations?
  • [ ] Created tests, if possible

Matthewnie avatar Jan 21 '20 17:01 Matthewnie

Hi @Matthewnie Is the underlying issue pagination? If so, we are soon rolling out in-built pagination features. If not we can accomodate this PR for sure.

andrewmclagan avatar Jan 23 '20 00:01 andrewmclagan

I have 2 needs, my primary need is the ability to send an authorization header with my requests, the 2nd is pagination.

Matthewnie avatar Jan 23 '20 15:01 Matthewnie

Thanks. Both of these have solutions coming in the next couple weeks. This package is not production ready and is in alpha

See https://github.com/wp-headless/auth

andrewmclagan avatar Jan 23 '20 20:01 andrewmclagan