Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 182 for StatusOK (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. pkg/http/get.go

    	}
    	for k, v := range headers {
    		req.Header.Set(k, v)
    	}
    
    	response, err := httpClient.Do(req)
    	if err != nil {
    		return nil, err
    	}
    	defer response.Body.Close()
    
    	if response.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("unexpected status %d", response.StatusCode)
    	}
    
    	var b bytes.Buffer
    	if _, err := io.Copy(&b, response.Body); err != nil {
    		return nil, err
    	}
    	return &b, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 09 03:52:10 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. 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)
  6. pkg/ctrlz/fw/utils.go

    	b := &bytes.Buffer{}
    
    	if err := t.Execute(b, data); err != nil {
    		RenderError(w, http.StatusInternalServerError, err)
    		return
    	}
    
    	w.WriteHeader(http.StatusOK)
    	w.Header().Set("Content-Type", "text/html; charset=utf-8")
    	_, _ = b.WriteTo(w)
    }
    
    // RenderJSON outputs the given data as JSON
    func RenderJSON(w http.ResponseWriter, statusCode int, data any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. istioctl/pkg/util/handlers/handlers_test.go

    				body := cmdtesting.ObjBody(codec, attachDeploy("istio-system"))
    				return &http.Response{StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: body}, nil
    			case p == "/namespaces/test/deployments/foo" && m == "GET":
    				body := cmdtesting.ObjBody(codec, attachDeploy("test"))
    				return &http.Response{StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: body}, nil
    			default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  8. internal/http/response-recorder.go

    func NewResponseRecorder(w http.ResponseWriter) *ResponseRecorder {
    	rf, _ := w.(io.ReaderFrom)
    	return &ResponseRecorder{
    		ResponseWriter: w,
    		ReaderFrom:     rf,
    		StatusCode:     http.StatusOK,
    		StartTime:      time.Now().UTC(),
    	}
    }
    
    // ErrNotImplemented when a functionality is not implemented
    var ErrNotImplemented = errors.New("not implemented")
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 00:13:19 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  9. src/net/http/pprof/testdata/delta_mutex.go

    	req := httptest.NewRequest("GET", "/debug/pprof/mutex?seconds=1", nil)
    	rec := httptest.NewRecorder()
    	rec.Body = new(bytes.Buffer)
    
    	h.ServeHTTP(rec, req)
    	resp := rec.Result()
    	if resp.StatusCode != http.StatusOK {
    		log.Fatalf("Request failed: %s\n%s", resp.Status, rec.Body)
    	}
    
    	fmt.Print(rec.Body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. tests/integration/security/egress_gateway_origination_test.go

    				// This root certificate can validate the server cert presented by the echoboot server instance.
    				{
    					name:            "simple",
    					statusCode:      http.StatusOK,
    					credentialToUse: strings.TrimSuffix(credName, "-cacert"),
    					useGateway:      true,
    				},
    				// Use CA certificate stored as k8s secret with different issuing CA as server's CA.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top