MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / httpStatusIsRedirect

Function httpStatusIsRedirect

internal/nodes/http_request_utils.go:178–184  ·  view source on GitHub ↗

判断状态是否为跳转

(statusCode int)

Source from the content-addressed store, hash-verified

176
177// 判断状态是否为跳转
178func 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
187var httpRequestTimestamp int64

Callers 4

doShutdownMethod · 0.85
doPageLookupMethod · 0.85
RoundTripMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected