Options
All
  • Public
  • Public/Protected
  • All
Menu

Fastly-specific APIs available to Compute@Edge JS services

Hierarchy

  • Fastly

Index

Methods

enableDebugLogging

  • enableDebugLogging(enabled: boolean): any
  • Causes the Compute@Edge JS runtime environment to log debug information to stdout.

    Note: This is mostly for internal debugging purposes and will generate highly unstable output.

    experimental

    Parameters

    • enabled: boolean

    Returns any

getGeolocationForIpAddress

  • getGeolocationForIpAddress(address: string): Geolocation
  • Retrieve geolocation information about the given IP address.

    Parameters

    • address: string

      the IPv4 or IPv6 address to query

      Note: Can only be used when processing requests, not during build-time initialization.

    Returns Geolocation

getLogger

  • getLogger(endpoint: string): Logger
  • Creates a new Logger instance for the given named log endpoint.

    Note: Can only be used when processing requests, not during build-time initialization.

    Parameters

    • endpoint: string

    Returns Logger

includeBytes

  • includeBytes(path: String): Uint8Array
  • Embed a file as a Uint8Array.

    experimental

    Parameters

    • path: String

      The path to include, relative to the project's top-level directory

      Note: Can only be used during build-time initialization, not when processing requests.

    Returns Uint8Array

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method

Generated using TypeDoc