MCPcopy
hub / github.com/cloudflare/cloudflared / statusCode

Struct statusCode

ingress/origin_service.go:253–259  ·  view source on GitHub ↗

statusCode is an OriginService that just responds with a given HTTP status. Typical use-case is "user wants the catch-all rule to just respond 404".

Source from the content-addressed store, hash-verified

251// statusCode is an OriginService that just responds with a given HTTP status.
252// Typical use-case is "user wants the catch-all rule to just respond 404".
253type statusCode struct {
254 code int
255
256 // Set only when the user has not defined any ingress rules
257 defaultResp bool
258 log *zerolog.Logger
259}
260
261func newStatusCode(status int) statusCode {
262 return statusCode{code: status}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected