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

Add HttpStack using Fetch API #751

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Add HttpStack using Fetch API #751

merged 1 commit into from
Jan 17, 2025

Conversation

Acconut
Copy link
Member

@Acconut Acconut commented Jan 17, 2025

This adds a HTTP stack using only the Fetch API. It is not enabled by default, but added for environments where XMLHttpRequest and Node's http module is not available, such as Cloudflare workers.

The stack can be imported using

import { FetchHttpStack } from 'tus-js-client/borwser/FetchHttpStack`

So far, no tests have been added because I need to think about how we can be test this functionality.

@Acconut Acconut self-assigned this Jan 17, 2025
@Acconut Acconut merged commit 0bff4dc into main Jan 17, 2025
8 of 10 checks passed
@Acconut Acconut deleted the fetchhttpstack branch January 17, 2025 09:40
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.

1 participant