MCPcopy Create free account
hub / github.com/efficientgo/e2e / HTTPReadinessProbe

Struct HTTPReadinessProbe

env.go:278–285  ·  view source on GitHub ↗

HTTPReadinessProbe checks readiness by making HTTP or HTTPS call and checking for expected HTTP/HTTPS status code.

Source from the content-addressed store, hash-verified

276
277// HTTPReadinessProbe checks readiness by making HTTP or HTTPS call and checking for expected HTTP/HTTPS status code.
278type HTTPReadinessProbe struct {
279 portName string
280 path string
281 scheme string
282 expectedStatusRangeStart int
283 expectedStatusRangeEnd int
284 expectedContent []string
285}
286
287func NewHTTPReadinessProbe(portName string, path string, expectedStatusRangeStart, expectedStatusRangeEnd int, expectedContent ...string) *HTTPReadinessProbe {
288 return newHTTPReadinessProbe(portName, path, "HTTP",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected