@ckir/corelib - v0.1.13
    Preparing search index...

    Function endPoint

    • Makes an HTTP request to a single URL with resilience features.

      Type Parameters

      • T = unknown

        The expected response body type.

      Parameters

      • url: string | URL | Request

        The URL or Request object to fetch.

      • options: Options = {}

        Optional ky configuration to override defaults.

      Returns Promise<RequestResult<T>>

      A Promise resolving to the RequestResult (success or error).