Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 194 for StatusOK (0.19 sec)

  1. pkg/kubelet/config/http_test.go

    		data, err := json.Marshal(testCase.pod)
    		if err != nil {
    			t.Fatalf("%s: Some weird json problem: %v", testCase.desc, err)
    		}
    		fakeHandler := utiltesting.FakeHandler{
    			StatusCode:   http.StatusOK,
    			ResponseBody: string(data),
    		}
    		testServer := httptest.NewServer(&fakeHandler)
    		defer testServer.Close()
    		ch := make(chan interface{}, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 14 09:38:23 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/goaway_test.go

    	}
    
    	if resp.StatusCode != http.StatusOK {
    		defer resp.Body.Close()
    		body, err := ioutil.ReadAll(resp.Body)
    		if err != nil {
    			return nil, fmt.Errorf("failed to read response body and status code is %d, error: %v", resp.StatusCode, err)
    		}
    
    		return nil, fmt.Errorf("expect response status code: %d, but got: %d. response body: %s", http.StatusOK, resp.StatusCode, body)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 17 12:58:54 UTC 2021
    - 13.9K bytes
    - Viewed (0)
  3. src/database/sql/example_service_test.go

    		defer cancel()
    
    		err := s.db.PingContext(ctx)
    		if err != nil {
    			http.Error(w, fmt.Sprintf("db down: %v", err), http.StatusFailedDependency)
    			return
    		}
    		w.WriteHeader(http.StatusOK)
    		return
    	case "/quick-action":
    		// This is a short SELECT. Use the request context as the base of
    		// the context timeout.
    		ctx, cancel := context.WithTimeout(r.Context(), 3*time.Second)
    		defer cancel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 20:21:26 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. cmd/object-lambda-handlers.go

    	"Switching Protocols":             http.StatusSwitchingProtocols,
    	"Processing":                      http.StatusProcessing,
    	"Early Hints":                     http.StatusEarlyHints,
    	"OK":                              http.StatusOK,
    	"Created":                         http.StatusCreated,
    	"Accepted":                        http.StatusAccepted,
    	"Non-Authoritative Information":   http.StatusNonAuthoritativeInfo,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. pkg/probe/http/http_test.go

    		health     probe.Result
    		accBody    string
    		notBody    string
    	}{
    		// The probe will be filled in below.  This is primarily testing that an HTTP GET happens.
    		{
    			handler: handleReq(http.StatusOK, "ok body"),
    			health:  probe.Success,
    			accBody: "ok body",
    		},
    		{
    			handler:    headerCounterHandler,
    			reqHeaders: http.Header{},
    			health:     probe.Success,
    			accBody:    "3",
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:40:08 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  6. src/os/exec.go

    // reference was not dropped or status changed.
    func (p *Process) handlePersistentRelease(reason processStatus) processStatus {
    	if p.mode != modeHandle {
    		panic("handlePersistentRelease called in invalid mode")
    	}
    
    	for {
    		refs := p.state.Load()
    		status := processStatus(refs & processStatusMask)
    		if status != statusOK {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  7. tests/integration/pilot/common/routing.go

    			port:           ports.HTTP,
    			code:           http.StatusOK,
    		},
    		{
    			name:     "wildcard IP with wildcard sidecar",
    			endpoint: "0.0.0.0",
    			port:     ports.HTTP,
    			code:     http.StatusOK,
    		},
    		{
    			name:     "wildcard IP with localhost sidecar",
    			endpoint: "127.0.0.1",
    			port:     ports.HTTP,
    			code:     http.StatusOK,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  8. pkg/ctrlz/topics/version.go

    		fw.RenderHTML(w, tmpl, &version.Info)
    	})
    
    	_ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("GET").Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		fw.RenderJSON(w, http.StatusOK, &version.Info)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. src/net/http/status.go

    const (
    	StatusContinue           = 100 // RFC 9110, 15.2.1
    	StatusSwitchingProtocols = 101 // RFC 9110, 15.2.2
    	StatusProcessing         = 102 // RFC 2518, 10.1
    	StatusEarlyHints         = 103 // RFC 8297
    
    	StatusOK                   = 200 // RFC 9110, 15.3.1
    	StatusCreated              = 201 // RFC 9110, 15.3.2
    	StatusAccepted             = 202 // RFC 9110, 15.3.3
    	StatusNonAuthoritativeInfo = 203 // RFC 9110, 15.3.4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 10 23:30:35 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/web/http.go

    			fileErr:    err,
    		}, nil
    	}
    
    	if err != nil {
    		return nil, err
    	}
    
    	return &Response{
    		URL:        u.Redacted(),
    		Status:     http.StatusText(http.StatusOK),
    		StatusCode: http.StatusOK,
    		Body:       f,
    	}, nil
    }
    
    func openBrowser(url string) bool { return browser.Open(url) }
    
    func isLocalHost(u *urlpkg.URL) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top