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

support additional fetch-parameters in BaseAPI constructor #3

Closed
jhannes opened this issue Apr 11, 2021 · 0 comments
Closed

support additional fetch-parameters in BaseAPI constructor #3

jhannes opened this issue Apr 11, 2021 · 0 comments

Comments

@jhannes
Copy link
Owner

jhannes commented Apr 11, 2021

BaseAPI constructor could take the following parameters from fetch RequestInit:

  • credentials: RequestCredentails
  • headers: Record<string, string>
  • mode: RequestMode
jhannes added a commit that referenced this issue Apr 11, 2021
* Support headers, credentials and mode
jhannes added a commit that referenced this issue Apr 11, 2021
* Remember to include basePath in URLs
* Each requestOption parameter is optional
@jhannes jhannes closed this as completed Apr 11, 2021
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