- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetHTTPClient (0.23 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers.go
// return user-agent which may be truncated. type lazyTruncatedUserAgent struct { req *http.Request } func (lazy *lazyTruncatedUserAgent) String() string { ua := "unknown" if lazy.req != nil { ua = utilnet.GetHTTPClient(lazy.req) if len(ua) > maxUserAgentLength { ua = ua[:maxUserAgentLength] + userAgentTruncateSuffix } } return ua } // LazyClientIP implements String() string and it will
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Sep 03 15:25:35 UTC 2023 - 4.9K bytes - Viewed (0) -
cmd/kubeadm/app/preflight/checks.go
return nil, errorList } if config, err = evc.configCertAndKey(config); err != nil { errorList = append(errorList, err) return nil, errorList } client := evc.getHTTPClient(config) for _, endpoint := range evc.Etcd.External.Endpoints { if _, err := url.Parse(endpoint); err != nil { errorList = append(errorList, errors.Wrapf(err, "failed to parse external etcd endpoint %s", endpoint))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:20:55 UTC 2024 - 39.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/net/http.go
func FormatURL(scheme string, host string, port int, path string) *url.URL { return &url.URL{ Scheme: scheme, Host: net.JoinHostPort(host, strconv.Itoa(port)), Path: path, } } func GetHTTPClient(req *http.Request) string { if ua := req.UserAgent(); len(ua) != 0 { return ua } return "unknown" } // SourceIPs splits the comma separated X-Forwarded-For header and joins it with
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 05 00:08:58 UTC 2022 - 20.8K bytes - Viewed (0)