HttpHealthIndicator
The HTTPHealthIndicator contains health indicators which are used for health checks related to HTTP requests
class HttpHealthIndicator {
pingCheck<Key extends string>(key: Key, url: string, __2: AxiosRequestConfig & { httpClient?: HttpClientLike; } = {}): Promise<HealthIndicatorResult<Key>>
responseCheck<T, Key extends string>(key: Key, url: string | URL, callback: (response: AxiosResponse<T>) => boolean | Promise<boolean>, __3: AxiosRequestConfig & { httpClient?: HttpClientLike; } = {}): Promise<HealthIndicatorResult<Key>>
}
Methods
pingCheck() | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Checks if the given url response in the given timeout and returns a result object corresponding to the result |
||||||||||||
Parameters
Examples
Returns
Throws
|
responseCheck() | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parameters
Returns
|