判断状态是否为跳转
(statusCode int)
| 176 | |
| 177 | // 判断状态是否为跳转 |
| 178 | func httpStatusIsRedirect(statusCode int) bool { |
| 179 | return statusCode == http.StatusPermanentRedirect || |
| 180 | statusCode == http.StatusTemporaryRedirect || |
| 181 | statusCode == http.StatusMovedPermanently || |
| 182 | statusCode == http.StatusSeeOther || |
| 183 | statusCode == http.StatusFound |
| 184 | } |
| 185 | |
| 186 | // 生成请求ID |
| 187 | var httpRequestTimestamp int64 |
no outgoing calls
no test coverage detected