Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FetchService

Hierarchy

  • FetchService

Index

Constructors

constructor

Properties

Private cacheDir

cacheDir: string | null

Private ioService

ioService: IOService

Methods

fetch

  • fetch(url: string, encoding?: string): Promise<string>
  • Fetches contents of an external URL

    Parameters

    • url: string

      The URL from which contents are loaded

    • Default value encoding: string = "utf8"

    Returns Promise<string>

    The promised contents

getCacheDir

  • getCacheDir(): string | null

getIOService

setCacheDir

  • setCacheDir(dir?: undefined | string): void

Generated using TypeDoc