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