- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 360 for resps (0.06 sec)
-
pkg/kubelet/lifecycle/handlers.go
} err = nil } discardHTTPRespBody(resp) } return err } func discardHTTPRespBody(resp *http.Response) { if resp == nil { return } // Ensure the response body is fully read and closed // before we reconnect, so that we reuse the same TCP // connection. defer resp.Body.Close() if resp.ContentLength <= maxRespBodyLength {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 11:40:52 UTC 2024 - 8.2K bytes - Viewed (0) -
cmd/storage-rest-client.go
}) if err != nil { return cache, toStorageErr(err) } var final *dataUsageCache err = st.Results(func(resp *nsScannerResp) error { if resp.Update != nil { select { case <-ctx.Done(): case updates <- *resp.Update: } } if resp.Final != nil { final = resp.Final } // We can't reuse the response since it is sent upstream. return nil }) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 27.4K bytes - Viewed (0) -
istioctl/pkg/writer/compare/comparator.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 3.7K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_image.go
resp, err := m.imageService.ImageStatus(ctx, toRuntimeAPIImageSpec(image), false) if err != nil { klog.ErrorS(err, "Failed to get image status", "image", image.Image) return "", err } if resp.Image == nil { return "", nil } return resp.Image.Id, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 08 00:30:31 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/vcstest/vcstest_test.go
// dump from the race detector.) t.Run("overview", func(t *testing.T) { t.Parallel() time.Sleep(1 * time.Millisecond) // Give the other handlers time to race. resp, err := http.Get(srv.URL) if err == nil { io.Copy(io.Discard, resp.Body) resp.Body.Close() } else { t.Error(err) } }) t.Cleanup(func() { // The subtests spawned by WalkDir run in parallel. When they complete, this
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 11 16:04:21 UTC 2022 - 3.9K bytes - Viewed (0) -
pkg/config/xds/deprecated.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 11 15:29:30 UTC 2023 - 2.8K bytes - Viewed (0) -
pkg/client/tests/remotecommand_test.go
req *http.Request resp *http.Response conn httpstream.Connection err, connErr error checkResponse bool called bool t *testing.T } func (u *fakeUpgrader) RoundTrip(req *http.Request) (*http.Response, error) { u.called = true u.req = req return u.resp, u.err } func (u *fakeUpgrader) NewConnection(resp *http.Response) (httpstream.Connection, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 05 06:08:18 UTC 2023 - 10.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/watch_termination_test.go
return nil } func (f *fakeRequestWaitGroup) Done() { f.inflight-- } func retryAfterSent(resp *http.Response) bool { switch { case resp.StatusCode == http.StatusServiceUnavailable && resp.Header.Get("Retry-After") == "1" && resp.Header.Get("Content-Type") == runtime.ContentTypeJSON && resp.Header.Get("X-Content-Type-Options") == "nosniff": return true default: return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 15:49:49 UTC 2023 - 5.2K bytes - Viewed (0) -
src/net/http/sniff_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 07 16:53:14 UTC 2022 - 9.6K bytes - Viewed (0) -
pkg/test/framework/components/zipkin/kube.go
resp, err := client.Get(c.address + fmt.Sprintf(tracesAPI, limit, spanName, annotationQuery)) if err != nil { scopes.Framework.Debugf("zipking err %v", err) return nil, err } if resp.StatusCode != http.StatusOK { scopes.Framework.Debugf("response err %v", resp.StatusCode) return nil, fmt.Errorf("zipkin api returns non-ok: %v", resp.StatusCode) } defer resp.Body.Close()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 14 19:29:38 UTC 2023 - 8K bytes - Viewed (0)