Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for redirectBehavior (0.41 sec)

  1. src/net/http/client.go

    	fn := c.CheckRedirect
    	if fn == nil {
    		fn = defaultCheckRedirect
    	}
    	return fn(req, via)
    }
    
    // redirectBehavior describes what should happen when the
    // client encounters a 3xx status code from the server.
    func redirectBehavior(reqMethod string, resp *Response, ireq *Request) (redirectMethod string, shouldRedirect, includeBody bool) {
    	switch resp.StatusCode {
    	case 301, 302, 303:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 06:06:11 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top