Skip to content

Release v0.3.0

Choose a tag to compare

@gnarr gnarr released this 27 Apr 20:38
· 41 commits to main since this release

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_FAVICON environment variable with default value of true
  • Use sync_channel for 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