Options
All
  • Public
  • Public/Protected
  • All
Menu

External module core/utils/request

barba/core/utils/request



Fetch pages for transitions.

  • Includes timeout
  • Uses Fetch API
  • Handles errors

Index

Functions

Functions

request

  • request(url: string, ttl?: number, requestError: RequestError): Promise<string>
  • Init a page request. Fetch the page and returns a promise with the text content.

    Parameters

    • url: string
    • Default value ttl: number = 2000
    • requestError: RequestError

    Returns Promise<string>

Generated using TypeDoc