Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for StatusOK (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/config_test.go

    `, t)
    	checkPath(server.URL+"/healthz/poststarthook/delegate-post-start-hook", http.StatusOK, `ok`, t)
    	checkPath(server.URL+"/healthz/poststarthook/wrapping-post-start-hook", http.StatusOK, `ok`, t)
    	checkPath(server.URL+"/foo", http.StatusForbidden, ``, t)
    	checkPath(server.URL+"/bar", http.StatusUnauthorized, ``, t)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/apiclient/wait.go

    						lastError = errors.WithMessagef(err, "%s /healthz check failed", comp.name)
    						return false, nil
    					}
    
    					defer func() {
    						_ = resp.Body.Close()
    					}()
    					if resp.StatusCode != http.StatusOK {
    						lastError = errors.Errorf("%s /healthz check failed with status: %d", comp.name, resp.StatusCode)
    						return false, nil
    					}
    
    					return true, nil
    				})
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. pilot/cmd/pilot-agent/status/server.go

    	s.mutex.Lock()
    	if err != nil {
    		w.WriteHeader(http.StatusServiceUnavailable)
    
    		log.Warnf("Envoy proxy is NOT ready: %s", err.Error())
    		s.lastProbeSuccessful = false
    	} else {
    		w.WriteHeader(http.StatusOK)
    
    		if !s.lastProbeSuccessful {
    			log.Info("Envoy proxy is ready")
    		}
    		s.lastProbeSuccessful = true
    	}
    	s.mutex.Unlock()
    }
    
    func (s *Server) isReady() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
  4. cmd/bucket-lifecycle-handlers_test.go

    			expectedRespStatus: http.StatusOK,
    			lifecycleResponse:  []byte(``),
    			errorResponse:      APIErrorResponse{},
    			shouldPass:         true,
    		},
    		{
    			method:             http.MethodGet,
    			accessKey:          creds.AccessKey,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  5. internal/rest/client.go

    	// If trace is enabled, dump http request and response,
    	// except when the traceErrorsOnly enabled and the response's status code is ok
    	if c.TraceOutput != nil && resp.StatusCode != http.StatusOK {
    		c.dumpHTTP(req, resp)
    	}
    
    	if resp.StatusCode != http.StatusOK {
    		// If server returns 412 pre-condition failed, it would
    		// mean that authentication succeeded, but another
    		// side-channel check has failed, we shall take
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. cmd/api-response.go

    func writeSuccessResponseJSON(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeJSON)
    }
    
    // writeSuccessResponseXML writes success headers and response if any,
    // with content-type set to `application/xml`.
    func writeSuccessResponseXML(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeXML)
    }
    
    // writeSuccessNoContent writes success headers with http status 204
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  7. pkg/kubelet/server/server.go

    func writeJSONResponse(response *restful.Response, data []byte) {
    	if data == nil {
    		response.WriteHeader(http.StatusOK)
    		// do not write a nil representation
    		return
    	}
    	response.Header().Set(restful.HEADER_ContentType, restful.MIME_JSON)
    	response.WriteHeader(http.StatusOK)
    	if _, err := response.Write(data); err != nil {
    		klog.ErrorS(err, "Error writing response")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  8. pilot/pkg/trustbundle/trustbundle_test.go

    	}
    	stop := test.NewStop(t)
    
    	// Mock response from TLS Spiffe Server
    	validHandler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		w.WriteHeader(http.StatusOK)
    		_, _ = w.Write([]byte(validSpiffeX509Bundle))
    	})
    
    	server1 := httptest.NewTLSServer(validHandler)
    	caCertPool.AddCert(server1.Certificate())
    	defer server1.Close()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/symbolizer/symbolizer.go

    	resp, err := client.Post(source, "application/octet-stream", strings.NewReader(post))
    	if err != nil {
    		return nil, fmt.Errorf("http post %s: %v", source, err)
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("http post %s: %v", source, statusCodeError(resp))
    	}
    	return io.ReadAll(resp.Body)
    }
    
    func statusCodeError(resp *http.Response) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. security/pkg/k8s/chiron/utils_test.go

    		t.Logf("request: %+v", *req)
    		switch req.URL.Path {
    		default:
    			t.Logf("The request contains path: %v", req.URL)
    			resp.WriteHeader(http.StatusOK)
    		}
    	})
    
    	server.httpServer = httptest.NewTLSServer(handler)
    
    	t.Logf("Serving TLS at: %v", server.httpServer.URL)
    
    	return server
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top