Class Health

See

https://docs.kutt.it/#tag/health

Example

const health = new Health(config);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

#request: {
    (options: string | RequestOptions | URL, callback?: ((res: IncomingMessage) => void)): ClientRequest;
    (url: string | URL, options: RequestOptions, callback?: ((res: IncomingMessage) => void)): ClientRequest;
} | {
    (options: string | RequestOptions | URL, callback?: ((res: IncomingMessage) => void)): http.ClientRequest;
    (url: string | URL, options: RequestOptions, callback?: ((res: IncomingMessage) => void)): http.ClientRequest;
}
config: ConfigI
prefix: "/health" = "/health"

Methods

  • Checks API health.

    Example

    const isHealthy = await health.check();
    

    Returns Promise<boolean>

  • Protected

    Type Parameters

    • Response = unknown

    Parameters

    • Optional url: string

    Returns Promise<Response>

  • Protected

    =

    Type Parameters

    • Response = unknown

    Parameters

    • Optional url: string

    Returns Promise<Response>

  • Protected

    Type Parameters

    • Response = unknown

    Parameters

    • params: ParamsT
    • Optional url: string

    Returns Promise<Response>

  • Protected

    Type Parameters

    • Response = unknown

    Parameters

    • data: BodyT
    • Optional url: string

    Returns Promise<Response>

  • Protected

    Type Parameters

    • Response = unknown

    Parameters

    • data: BodyT
    • Optional url: string

    Returns Promise<Response>

  • Protected

    Parameters

    • url: string

    Returns string

Generated using TypeDoc