// splitHostPort splits a network address hostport of the form "host", // "host%zone", "[host]", "[host%zone], "host:port", "host%zone:port", // "[host]:port", "[host%zone]:port", or ":port" into host or host%zone and // port. // // An empty host is returned if it is not provided or unparsable. A negative // port is returned if it is not provided or unparsable. func splitHostPort(hostport string) (host string, port int) { … } func requiredHTTPPort(https bool, port int) int { … } func serverClientIP(xForwardedFor string) string { … } func netProtocol(proto string) (name string, version string) { … } var methodLookup …