Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ValidHostHeader (0.1 sec)

  1. src/vendor/golang.org/x/net/http/httpguts/httplex.go

    	if len(v) == 0 {
    		return false
    	}
    	for i := 0; i < len(v); i++ {
    		if !isTokenTable[v[i]] {
    			return false
    		}
    	}
    	return true
    }
    
    // ValidHostHeader reports whether h is a valid host header.
    func ValidHostHeader(h string) bool {
    	// The latest spec is actually this:
    	//
    	// http://tools.ietf.org/html/rfc7230#section-5.4
    	//     Host = uri-host [ ":" port ]
    	//
    	// Where uri-host is:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top