Interface ClientServiceConfig

Client service configuration.

interface ClientServiceConfig {
    defs: HNamespace;
    fetch?: FetchMethod;
    getDefaultOptions(): RequestInit;
    getHaystackServiceUrl(path: string): string;
    getHostServiceUrl(path: string): string;
    getOpUrl(op: string): string;
    getServiceUrl(path: string): string;
}

Implemented by

Properties

defs: HNamespace

The namespace defs.

fetch?: FetchMethod

A network fetch function to use for network calls.

Methods

  • Return the URL for a Haystack REST service.

    Parameters

    • path: string

      The service path.

    Returns string

    The service's URL.

  • Return the URL for a Host REST service.

    Parameters

    • path: string

      The service path.

    Returns string

    The service's URL.

  • Return the URL for a general REST service.

    Parameters

    • path: string

      The API path.

    Returns string

    The services URL.