Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for urlErrorOp (0.09 sec)

  1. src/net/http/client.go

    			// error, like we did in Go 1.7 and earlier.
    			shouldRedirect = false
    		}
    	}
    	return redirectMethod, shouldRedirect, includeBody
    }
    
    // urlErrorOp returns the (*url.Error).Op value to use for the
    // provided (*Request).Method value.
    func urlErrorOp(method string) string {
    	if method == "" {
    		return "Get"
    	}
    	if lowerMethod, ok := ascii.ToLower(method); ok {
    		return method[:1] + lowerMethod[1:]
    	}
    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