dohdec
    Preparing search index...

    Interface DOHoptions

    interface DOHoptions {
        agent?: Dispatcher | null;
        contentType?: string;
        customFetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        http2?: boolean;
        preferPost?: boolean;
        signal?: AbortSignal
        | null;
        url?: string;
        userAgent?: string;
    }
    Index

    Properties

    agent?: Dispatcher | null

    Undici agent for HTTPS requests. If used, the http2 option is ignored, and the certificate information is never output, unless the specified agent makes that happen.

    contentType?: string

    MIME type for POST.

    customFetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    Custom fetch implementation. Defaults to fetch.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    http2?: boolean

    Use http/2 if it is available.

    preferPost?: boolean

    Should POST be preferred to Get for DNS-format queries?

    signal?: AbortSignal | null

    Used to cancel execution.

    url?: string

    Base URL for all HTTP requests.

    userAgent?: string

    User Agent for HTTP request.