Vinyl
    Preparing search index...

    Interface Requester

    An abstraction to fetching resources. Implementations may have retry or throttling behaviors.

    interface Requester {
        request(
            input: RequestInfo | Readonly<URL>,
            init?: Maybe<Readonly<Omit<RequestInit, "signal">>>,
            requestOptions?: Maybe<RequestOptions>,
        ): Promise<Response>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Requests a resource.

      Note: Unlike window.fetch, the returned promise is expected to reject if the response is !ok.

      Parameters

      • input: RequestInfo | Readonly<URL>
      • Optionalinit: Maybe<Readonly<Omit<RequestInit, "signal">>>
      • OptionalrequestOptions: Maybe<RequestOptions>

      Returns Promise<Response>