GetHealthcheckHttpConfig

data class GetHealthcheckHttpConfig(val allowInsecure: Boolean, val expectedBody: String, val expectedCodes: List<String>, val followRedirects: Boolean, val header: Map<String, List<String>>, val method: String, val path: String, val port: Int)

Constructors

Link copied to clipboard
constructor(allowInsecure: Boolean, expectedBody: String, expectedCodes: List<String>, followRedirects: Boolean, header: Map<String, List<String>>, method: String, path: String, port: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Do not validate the certificate when the health check uses HTTPS.

Link copied to clipboard

A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.

Link copied to clipboard

The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.

Link copied to clipboard

Follow redirects if the origin returns a 3xx status code.

Link copied to clipboard

The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden.

Link copied to clipboard

The HTTP method to use for the health check. Available values: "GET", "HEAD".

Link copied to clipboard

The endpoint path to health check against.

Link copied to clipboard
val port: Int

Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.