dahua-camera-http 0.3.1

Digest-authenticating HTTP client for Dahua camera CGI endpoints
Documentation

dahua-camera-http

Digest-authenticating HTTP client for a Dahua camera's own CGI interface.

Every management protocol in the dahua-camera workspace — CGI control, the event attach stream, ONVIF SOAP, snapshots, storage queries — reaches the camera through this one client, so they share a connection pool and a single Digest implementation without depending on each other.

Most people should depend on the dahua-camera facade instead of this crate directly.

Why Digest, specifically

Dahua firmware answers Basic auth with a 401 and a Digest challenge, so a client that only speaks Basic can never authenticate against real hardware — silently, since the failure looks like a credentials problem. This client answers the challenge, and signs the path and query rather than the absolute URL, which is what the camera expects.

Credentials

CameraHttpClient holds a password, so it implements Debug by hand and prints password: "<redacted>". A test fails if the derive is ever restored. URLs are stripped of embedded userinfo before they reach a log line or an error message.

Features

Feature Effect
tls Allow https:// management URLs. Off by default — on an isolated vehicle LAN a TLS stack is dead weight.

License

MIT OR Apache-2.0