wp-headless / fetch

Isomorphic Wordpress API client and React hooks - super tiny, super fast.
MIT License
53 stars 3 forks source link

Add access to request and response headers #7

Open Matthewnie opened 4 years ago

Matthewnie commented 4 years ago

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

andrewmclagan commented 4 years ago

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.

Matthewnie commented 4 years ago

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

andrewmclagan commented 4 years ago

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