- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 40 for StatusOK (0.55 sec)
-
pkg/istio-agent/health/health_check_test.go
sss := httptest.NewServer(http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) { if httpServerEventCount < len(httpHealthStatuses) && httpHealthStatuses[httpServerEventCount] { writer.WriteHeader(http.StatusOK) writer.Write([]byte("foobar")) } else { writer.WriteHeader(http.StatusInternalServerError) } httpServerEventCount++ }))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 09 16:50:11 UTC 2023 - 6.3K bytes - Viewed (0) -
internal/config/cache/cache.go
resp, err := c.clnt.Do(req) if err != nil { return nil, err } defer xhttp.DrainBody(resp.Body) switch resp.StatusCode { case http.StatusNotFound: return nil, ErrKeyMissing case http.StatusOK: co := &ObjectInfo{} return co, co.DecodeMsg(msgp.NewReader(resp.Body)) default: return nil, ErrInvalidArgument } } // Set sets the cache object info func (c Config) Set(ci *ObjectInfo) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.6K 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) -
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/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) -
pkg/test/echo/server/endpoint/grpc.go
} ip := "0.0.0.0" if peerInfo, ok := peer.FromContext(ctx); ok { ip, _, _ = net.SplitHostPort(peerInfo.Addr.String()) } echo.StatusCodeField.Write(&body, strconv.Itoa(http.StatusOK)) echo.ServiceVersionField.Write(&body, h.Version) echo.ServicePortField.Write(&body, strconv.Itoa(portNumber)) echo.ClusterField.WriteNonEmpty(&body, h.Cluster) echo.NamespaceField.WriteNonEmpty(&body, h.Namespace)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Sep 25 17:30:37 UTC 2023 - 8.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/version.go
if err != nil { return "", errors.Errorf("unable to read content of URL %q: %s", url, err.Error()) } bodyString := strings.TrimSpace(string(body)) if resp.StatusCode != http.StatusOK { msg := fmt.Sprintf("unable to fetch file. URL: %q, status: %v", url, resp.Status) return bodyString, errors.New(msg) } return bodyString, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 10:50:19 UTC 2024 - 9.5K bytes - Viewed (0) -
src/cmd/pprof/pprof.go
TLSClientConfig: tlsConfig, }, } resp, err := client.Get(source) if err != nil { return nil, err } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return nil, statusCodeError(resp) } return profile.Parse(resp.Body) } func statusCodeError(resp *http.Response) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 9.5K bytes - Viewed (0)