Setu-TS
    Preparing search index...

    Interface IServiceBinding

    A service binding to another Worker — a fetch-shaped RPC channel.

    0.2.0

    interface IServiceBinding {
        fetch(input: string | Request, init?: RequestInit): Promise<Response>;
    }
    Index
    • Invokes the bound Worker.

      Parameters

      • input: string | Request

        The request, as fetch accepts it

      • Optionalinit: RequestInit

        Request initialization

      Returns Promise<Response>

      The bound Worker's response