@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Interface ObserverFetchOptions

    Fetch knobs mirror the contract's url_fetch.runner_config.fetch block. Callers SHOULD keep the defaults for AdCP Verified grading.

    interface ObserverFetchOptions {
        max_body_bytes?: number;
        max_connect_seconds?: number;
        timeout_seconds?: number;
        required_content_types?: readonly string[];
        ssrf_policy?: SsrfPolicy;
        dispatcher?: object;
    }
    Index

    Properties

    max_body_bytes?: number

    Max body bytes to read before aborting. Default 262144 (256 KiB).

    max_connect_seconds?: number

    Connect-timeout in seconds. Default 3.

    timeout_seconds?: number

    Overall request timeout in seconds. Default 10.

    required_content_types?: readonly string[]

    Acceptable response content-types. Default: text/html, application/xhtml+xml.

    ssrf_policy?: SsrfPolicy

    SSRF policy to enforce. Default: DEFAULT_SSRF_POLICY.

    dispatcher?: object

    Custom undici dispatcher. Advanced callers inject here to plug in a mock or a pre-pinned Agent. When omitted, the observer constructs an Agent with connect.lookup pinned to the first policy-allowed DNS address — this is the defense the contract's dns_revalidation: required clause mandates.