Options
All
  • Public
  • Public/Protected
  • All
Menu

Module fetch/defaultFetch

Index

Functions

Functions

Const default

  • default(apiUrl: RequestInfo, requestInit?: {}, _res?: boolean | ServerResponse<IncomingMessage>): Promise<Response>
  • fetch data from a JSON:API endpoint

    Parameters

    • apiUrl: RequestInfo

      the api url for the JSON:API endpoint

    • requestInit: {} = {}

      fetch initialization object

    • Optional _res: boolean | ServerResponse<IncomingMessage>

      response object

    Returns Promise<Response>

    a promise containing the data for the JSON:API response

Generated using TypeDoc