Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom headers #7

Open
ptrckvzn opened this issue Jun 21, 2023 · 0 comments
Open

Allow custom headers #7

ptrckvzn opened this issue Jun 21, 2023 · 0 comments
Assignees

Comments

@ptrckvzn
Copy link
Member

Either in config or in fetch request, the client should accept custom headers.

Right now it is not possible to pass a Accept-Language header to the client.

https://github.com/area17/twill-api-client/blob/main/src/index.ts#L29

and possibly per request: $twill.find('pages').headers({ 'Accept-Language': 'fr' }).fetch().

@ptrckvzn ptrckvzn self-assigned this Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant