This commit is contained in:
gospider
2023-12-27 22:14:29 +08:00
parent 7847f31f0f
commit e44ed9914a
4 changed files with 17 additions and 3 deletions

View File

@@ -92,6 +92,9 @@ func shouldSendContentLength(t *http.Request) bool
//go:linkname removeEmptyPort net/http.removeEmptyPort
func removeEmptyPort(host string) string
//go:linkname redirectBehavior net/http.redirectBehavior
func redirectBehavior(reqMethod string, resp *http.Response, ireq *http.Request) (redirectMethod string, shouldRedirect, includeBody bool)
//go:linkname readTransfer net/http.readTransfer
func readTransfer(msg any, r *bufio.Reader) (err error)