Marmot-TS
    Preparing search index...

    Interface BlossomMediaTransportOptions

    interface BlossomMediaTransportOptions {
        allowDestination?: (url: URL) => boolean;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        signer: EventSigner;
    }
    Index
    allowDestination?: (url: URL) => boolean

    Contact-time permission, checked before signing or fetching. Defaults to HTTPS, rejecting non-routable literal hosts and localhost. A callback can allow local development endpoints. DNS resolution is controlled by the fetch/network implementation; use a resolver-aware fetch or egress policy to restrict it.

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

    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>

    signer: EventSigner