Security fixes and code quality improvements
- Fix SHA algorithm support in Digest auth: properly support MD5, SHA-256,
SHA-512; reject SHA-512-256 with clear error (requires special IVs)
- Add nonce count tracking for Digest auth replay protection (RFC 7616)
- Fix Content-Length parsing to handle malformed values safely
- Use is_chunked_encoding helper consistently in http_read.ml
- Extract write_body_to_flow helper to reduce duplication in http_client.ml
- Add SOCKS5 proxy validation (not yet implemented, raises clear error)
- Add error convenience constructors for cleaner error raising
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>