• Loads text via HTTP(S). Uses XMLHttpRequest

    Parameters

    • url: string

      what to load

    • Optional ok: ((txt: string, httpStatus?: number) => void)

      optional callback in success case

        • (txt: string, httpStatus?: number): void
        • Parameters

          • txt: string
          • Optional httpStatus: number

          Returns void

    • Optional failed: ((errInfo: string, httpStatus?: number) => void)

      optional callback in error case

        • (errInfo: string, httpStatus?: number): void
        • Parameters

          • errInfo: string
          • Optional httpStatus: number

          Returns void

    • timeout: number = 50000

      when it should fail (defaults to 5secs)

    Returns void

Generated using TypeDoc