Skip to content

Conversation

@rod-driscoll
Copy link
Contributor

Added support for large file sizes by sending data in 8KB chunks

- Added chunked transfer encoding option to respond() function
- Implemented sendChunk() and endChunked() helper functions
- Extended HttpResponse with streaming methods:
  - writeHead() - sends headers with chunked encoding
  - write() - sends data chunks
  - end() - finalizes chunked response
- Updated Static middleware to support chunked transfer:
  - Added options parameter with chunkSize (default 8KB)
  - Chunked mode disabled by default for reliability
  - Enable with: HttpServer.Static('./public', {chunked: true})
- Memory efficient streaming for large files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@rod-driscoll rod-driscoll force-pushed the Feature/chunk-large-files branch from 5bb7a8a to 9147400 Compare December 19, 2025 10:52
@rod-driscoll
Copy link
Contributor Author

I've found that this solution is not 100% reliable, so am closing the request until i can create a reliable solution.

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