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 to use http package instead of http2 #9

Merged
merged 8 commits into from Dec 5, 2021

Conversation

aloisdeniel
Copy link
Contributor

A few months ago, we had to switch the request logic to http2 since Figma APIs need HTTP2 to support large responses from this API.

This works well on mobile, but not on web, where HTTP2 isn't surfaced (the current FigmaClient implementation can't be used with web target) and is just used under the hood when available . This means that regular http requests become in fact HTTP2 requests under the hood, depending on the web browser and requests headers.

To summarize, we have to use http2 on mobile/desktop, and http on web.

@arnemolland arnemolland merged commit bf989a8 into arnemolland:main Dec 5, 2021
@arnemolland
Copy link
Owner

Somehow this never got into my inbox so I'm super late to this, but thanks a bunch!

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

Successfully merging this pull request may close these issues.

None yet

2 participants