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

handler, s3store, filestore: Serve GET requests from storage provider #1228

Merged
merged 14 commits into from
Dec 20, 2024

Conversation

Acconut
Copy link
Member

@Acconut Acconut commented Dec 20, 2024

This is a continuation of #1208 with additional commits from myself. It also expands the PR to introduce the new API to filestore.

This PR adds a new interfaces for data stores that allows them to handle GET requests mostly on their own. If implemented by the store, the tus handler will hand GET requests and the corresponding response writer to the data store with minimal intervention. The data store can then serve the GET request using native capabilities from the underlying storage, providing support for range request and conditional requests.

The interfaces are so far implemented by s3store and filestore.

Closes #1064

pcfreak30 and others added 5 commits November 26, 2024 10:28
…ontent serving, closes #1064

- Add ServerDataStore interface
- Implement ContentServerDataStore in S3Store with streaming support
- Add Range header support for partial content requests
- Update StoreComposer to support ContentServer capability
- Add tests for new ContentServerDataStore functionality
- Update Go version to 1.22.1
@Acconut Acconut merged commit e20b174 into main Dec 20, 2024
14 checks passed
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.

handler: support HTTP range requests in GET /:upload
2 participants