Add Basic Authentication to NanoHTTPD: A Minimal Implementation Guide
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.