Skip to content

Allow custom headers #7

@ptrckvzn

Description

@ptrckvzn

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().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions