- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 207 for StatusOK (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/discovery/root_test.go
resp, err := http.Get(server.URL) if err != nil { return nil, err } if resp.StatusCode != http.StatusOK { return nil, fmt.Errorf("unexpected server response, expected %d, actual: %d", http.StatusOK, resp.StatusCode) } groupList := metav1.APIGroupList{} err = decodeResponse(t, resp, &groupList) return &groupList, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 08 22:33:50 UTC 2018 - 6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/routes/version.go
c.Add(versionWS) } // handleVersion writes the server's version information. func (v Version) handleVersion(req *restful.Request, resp *restful.Response) { responsewriters.WriteRawJSON(http.StatusOK, *v.Version, resp.ResponseWriter)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 09 18:11:41 UTC 2022 - 1.6K bytes - Viewed (0) -
tests/integration/telemetry/policy/traffic_registry_only_test.go
Aggregation: "sum", Labels: map[string]string{ "destination_service_name": "istio-egressgateway", "response_code": "200", }, }, StatusCode: http.StatusOK, RequestHeaders: map[string]string{ // We inject this header in the VirtualService "Handled-By-Egress-Gateway": "true", }, }, }, // TODO add HTTPS through gateway {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 18 18:03:23 UTC 2022 - 3.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/rest/response_checker_test.go
resp *http.Response expectError bool expected error name string }{ { resp: &http.Response{ Body: ioutil.NopCloser(bytes.NewBufferString("Success")), StatusCode: http.StatusOK, }, expectError: false, name: "ok", }, { resp: &http.Response{ Body: ioutil.NopCloser(bytes.NewBufferString("Invalid request.")), StatusCode: http.StatusBadRequest, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 19:04:33 UTC 2018 - 2.6K bytes - Viewed (0) -
pkg/probe/tcp/tcp_test.go
) func TestTcpHealthChecker(t *testing.T) { // Setup a test server that responds to probing correctly server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) })) defer server.Close() tHost, tPortStr, err := net.SplitHostPort(server.Listener.Addr().String()) if err != nil { t.Errorf("unexpected error: %v", err) } tPort, err := strconv.Atoi(tPortStr)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 25 18:23:33 UTC 2017 - 1.8K bytes - Viewed (0) -
pkg/ctrlz/topics/env.go
fw.RenderHTML(w, tmpl, getVars()) }) _ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("GET").Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) { fw.RenderJSON(w, http.StatusOK, getVars()) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 1.8K bytes - Viewed (0) -
pkg/ctrlz/topics/mem.go
}) _ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("GET").Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) { ms := &runtime.MemStats{} runtime.ReadMemStats(ms) fw.RenderJSON(w, http.StatusOK, ms) }) _ = context.JSONRouter().StrictSlash(true).NewRoute().Methods("PUT").Path("/forcecollection").HandlerFunc(func(w http.ResponseWriter, req *http.Request) { runtime.GC() w.WriteHeader(http.StatusAccepted)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 1.8K bytes - Viewed (0) -
docs/auditlog/auditlog-echo.go
return } log.Printf(">>> %s %s\n", r.Method, r.URL.Path) var out bytes.Buffer json.Indent(&out, body, "", " ") log.Printf("%s\n", out.String()) w.WriteHeader(http.StatusOK) } func main() { flag.Parse() http.HandleFunc("/", mainHandler) log.Printf("Listening on :%d\n", port) log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", port), nil))
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 01 21:31:13 UTC 2024 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go
result = &metav1.Status{ Status: metav1.StatusSuccess, Code: http.StatusOK, Details: &metav1.StatusDetails{ Kind: scope.Kind.Kind, }, } } span.AddEvent("About to write a response") defer span.AddEvent("Writing http response done") transformResponseObject(ctx, scope, req, w, http.StatusOK, outputMediaType, result) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 01 10:00:32 UTC 2023 - 11.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/rest/response_checker.go
type GenericHttpResponseChecker struct { QualifiedResource schema.GroupResource Name string } func (checker GenericHttpResponseChecker) Check(resp *http.Response) error { if resp.StatusCode < http.StatusOK || resp.StatusCode > http.StatusPartialContent { defer resp.Body.Close() bodyBytes, err := ioutil.ReadAll(io.LimitReader(resp.Body, maxReadLength)) if err != nil { return errors.NewInternalError(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 03 06:33:43 UTC 2017 - 2.3K bytes - Viewed (0)