NanoHTTPD has no built-in authentication. Implement Basic Auth by overriding the serve method, checking the Authorization header, and decoding base64 credentials manually. Always use HTTPS since Basic Auth provides no encryption.
A guide to building a fast, single‑process HTTP API using Bun.serve, covering requirements, trust boundaries, operational checks, failure modes and when to change the design.
A decision guide for stopping Go HTTP servers without dropping in-flight requests or leaking goroutines. Compare Shutdown, Close, and signal.NotifyContext with a bounded drain pattern.
Learn how to combine context.WithTimeout with http.Server.Shutdown to stop Go HTTP services gracefully, avoid context leaks, and balance shutdown deadlines against in-flight request latency.
Learn how Crystal’s lightweight fibers let you handle tens of thousands of requests per second with minimal overhead, and see a concrete example that compares fiber‑based and thread‑per‑request servers.
Create one bounded request context at HTTP ingress, pass it as the first argument, derive short-lived children for sub-operations, and never store context in long-lived structs to avoid leaked goroutines.
Learn how to add graceful shutdown handling to a Crystal HTTP server so it stops accepting new connections, finishes existing requests, and exits cleanly on SIGINT/SIGTERM.
Bun's HTTP server bypasses Node.js's stream architecture by integrating a C++ parser directly with JavaScriptCore, using zero-copy Request/Response objects. This architecture note covers the design boundaries, operational verification steps, and failure modes when migrating from Node.js.