- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 104 for StatusOK (0.28 sec)
-
pkg/istio-agent/health/health_probers.go
if err != nil { return Unhealthy, err } defer func() { err = res.Body.Close() if err != nil { healthCheckLog.Error(err) } }() // from [200,400) if res.StatusCode >= http.StatusOK && res.StatusCode < http.StatusBadRequest { return Healthy, nil } return Unhealthy, fmt.Errorf("status code was not from [200,400), bad code %v", res.StatusCode) } type TCPProber struct {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 5.7K bytes - Viewed (0) -
src/net/http/cgi/child.go
r.bufw.Flush() } func (r *response) Header() http.Header { return r.header } func (r *response) Write(p []byte) (n int, err error) { if !r.wroteHeader { r.WriteHeader(http.StatusOK) } if !r.wroteCGIHeader { r.writeCGIHeader(p) } return r.bufw.Write(p) } func (r *response) WriteHeader(code int) { if r.wroteHeader {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 5.5K bytes - Viewed (0) -
pkg/bootstrap/platform/azure.go
return "" } req.Header.Add("Metadata", "True") response, err := client.Do(req) if err != nil { log.Warnf("HTTP request failed: %v", err) return "" } if response.StatusCode != http.StatusOK { log.Warnf("HTTP request unsuccessful with status: %v", response.Status) } defer response.Body.Close() body, err := io.ReadAll(response.Body) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 6.2K bytes - Viewed (0) -
docs/sts/web-identity.go
return d, err } clnt := http.Client{ Transport: http.DefaultTransport, } resp, err := clnt.Do(req) if err != nil { return d, err } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return d, fmt.Errorf("unexpected error returned by %s : status(%s)", ustr, resp.Status) } dec := json.NewDecoder(resp.Body) if err = dec.Decode(&d); err != nil { return d, err } return d, nil }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 19 09:13:33 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/go/internal/web/api.go
} func (e *HTTPError) Unwrap() error { return e.Err } // GetBytes returns the body of the requested resource, or an error if the // response status was not http.StatusOK. // // GetBytes is a convenience wrapper around Get and Response.Err. func GetBytes(u *url.URL) ([]byte, error) { resp, err := Get(DefaultSecurity, u) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 25 13:00:34 UTC 2022 - 6.9K bytes - Viewed (0) -
src/net/http/httptest/recorder.go
type ResponseRecorder struct { // Code is the HTTP response code set by WriteHeader. // // Note that if a Handler never calls WriteHeader or Write, // this might end up being 0, rather than the implicit // http.StatusOK. To get the implicit value, use the Result // method. Code int // HeaderMap contains the headers explicitly set by the Handler. // It is an internal detail. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 7K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig_test.go
tf.UnstructuredClient = &fake.RESTClient{ NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer, Resp: &http.Response{ StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: cmdtesting.ObjBody(codec, cmdtesting.NewInternalType("", "", "foo")), }, } return tf }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 10 21:51:29 UTC 2024 - 8.9K bytes - Viewed (0) -
pkg/controlplane/controller/kubernetesservice/controller.go
wait.PollImmediateUntil(100*time.Millisecond, func() (bool, error) { var code int c.client.CoreV1().RESTClient().Get().AbsPath("/readyz").Do(context.TODO()).StatusCode(&code) return code == http.StatusOK, nil }, ch) wait.NonSlidingUntil(func() { // Service definition is not reconciled after first // run, ports and type will be corrected only during // start.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 16 16:33:01 UTC 2023 - 9.3K bytes - Viewed (0) -
pkg/proxy/healthcheck/service_health.go
resp.Header().Set("X-Content-Type-Options", "nosniff") resp.Header().Set("X-Load-Balancing-Endpoint-Weight", strconv.Itoa(count)) if count != 0 && kubeProxyHealthy { resp.WriteHeader(http.StatusOK) } else { resp.WriteHeader(http.StatusServiceUnavailable) } fmt.Fprint(resp, strings.Trim(dedent.Dedent(fmt.Sprintf(` { "service": { "namespace": %q, "name": %q },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 30 09:25:48 UTC 2023 - 8.9K 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() body, err := io.ReadAll(resp.Body)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 14 19:29:38 UTC 2023 - 8K bytes - Viewed (0)