Repository navigation
Release v0.3.0
Changelog
All notable changes to this project will be documented in this file.
[0.3.0] - 2025-04-27
🚀 Features
- Respond with 404 to unknown paths
- Add
SHOW_FAVICONenvironment variable with default value oftrue - Use
sync_channelfor logs with try_send - THREAD_POOL_SIZE is now configurable via env
- Respond correctly to HEAD requests
🐛 Bug Fixes
- Do not attempt to consume body on GET for / or /favicon.ico
- Avoid per-line heap allocations when parsing Content-Length
- Gracefully handle a disconnected worker queue
- Validate PORT env var before binding
- Handle try_send errors explicitly
- Return 501 for unsupported HTTP methods
🚜 Refactor
- Simplify get_client_address
- Simplify sanitize method
- Use format macro instead of string.into
- Use string.into for port default value
- Use match ok/err for getting content-length header
⚡ Performance
- Skip allocating on heap for method and path
- Add 24h caching header for favicon
⚙️ Miscellaneous Tasks
- Formatting fixes