Function fetch

  • Makes an HTTP request using the specified URL and options.

    Parameters

    • url: string

      The URL to make the request to.

    • Optional options: fetchOptions

      Optional parameters for the request.

    Returns Promise<Response>

    The response from the HTTP request.

    Throws

    Will throw an error if the HTTP request fails or the method is not allowed.