MCPcopy Index your code
hub / github.com/V2RaySSR/RealityChecker / IsStatusCodeSafe

Function IsStatusCodeSafe

internal/types/types.go:67–69  ·  view source on GitHub ↗

IsStatusCodeSafe 检查状态码是否安全

(statusCode int)

Source from the content-addressed store, hash-verified

65
66// IsStatusCodeSafe 检查状态码是否安全
67func IsStatusCodeSafe(statusCode int) bool {
68 return ClassifyStatusCode(statusCode, true) == StatusCodeCategorySafe
69}
70
71// IsStatusCodeExcluded 检查状态码是否应该排除
72func IsStatusCodeExcluded(statusCode int) bool {

Callers

nothing calls this directly

Calls 1

ClassifyStatusCodeFunction · 0.85

Tested by

no test coverage detected