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".
| 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". |
| 253 | type 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 | |
| 261 | func newStatusCode(status int) statusCode { |
| 262 | return statusCode{code: status} |
nothing calls this directly
no outgoing calls
no test coverage detected