pub struct Config {
pub max_document_bytes: u64,
pub connect_timeout: Duration,
pub request_timeout: Duration,
pub target: TargetPolicy,
}Expand description
Limits applied while resolving. The defaults assume DIDs arrive from untrusted input.
A browser build gets the transport the browser gives it, which exposes no controls for redirects, timeouts or address selection. Each field below says what survives there.
Fields§
§max_document_bytes: u64Rejects documents larger than this. A native build streams the body, so an oversized or dishonestly-framed response is abandoned rather than buffered; a browser build has already buffered it and can only check afterwards.
connect_timeout: DurationIgnored by a browser build.
request_timeout: DurationIgnored by a browser build.
target: TargetPolicyWhich hosts a resolution may reach.
TargetPolicy::PublicOnly also disables the system proxy, since a
proxy resolves the target host itself and would bypass the address
checks.
A browser build applies the scheme rule and refuses a literal address, but cannot judge the address a hostname resolves to.