Abstract HttpModule class. Provides a base class for implementing concrete HTTP modules within the Honeycomb ecosystem.

Hierarchy

Constructors

  • Constructor for the HttpModule class.

    Parameters

    • _apiUrl: string

      The base API URL used to make HTTP requests.

    Returns HttpModule

Properties

_apiUrl: string
_honeycomb: Honeycomb
apiUrl: string
authToken: string
headers: any

Accessors

  • get apiUrl(): string
  • Getter for the apiUrl property. Provides access to the base API URL used to make HTTP requests.

    Returns string

  • set apiUrl(apiUrl): void
  • Setter for the apiUrl property. Sets the base API URL used to make HTTP requests.

    Parameters

    • apiUrl: string

      The new API URL to set.

    Returns void

Methods

  • Type Parameters

    • R = any

    Parameters

    Returns Promise<R>

  • Type Parameters

    • R = any

    Parameters

    Returns Promise<R>

  • Get the Honeycomb client instance associated with the module.

    Returns Honeycomb

    The Honeycomb client instance.

  • Install method to add the HttpModule to the Honeycomb instance.

    Parameters

    • honeycomb: Honeycomb

      The Honeycomb instance to install the HttpModule on.

    Returns Honeycomb

    The Honeycomb instance with the HttpModule installed.

  • Type Parameters

    • R = any

    Parameters

    Returns Promise<R>

  • Type Parameters

    • R = any

    Parameters

    Returns Promise<R>

Generated using TypeDoc