- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 116 for StatusCode (0.13 sec)
-
internal/config/cache/remote_gen.go
} case "ModTime": z.ModTime, err = dc.ReadTime() if err != nil { err = msgp.WrapError(err, "ModTime") return } case "StatusCode": z.StatusCode, err = dc.ReadInt() if err != nil { err = msgp.WrapError(err, "StatusCode") return } case "CacheControl": z.CacheControl, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "CacheControl")
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Nov 22 21:46:17 UTC 2023 - 18.9K bytes - Viewed (0) -
pkg/serviceaccount/openidmetadata_test.go
if err != nil { t.Fatal(err) } if tt.WantOK && (resp.StatusCode != http.StatusOK) { t.Errorf("Get(%v)= %v, want %v", tt.Path, resp.StatusCode, http.StatusOK) } if !tt.WantOK && (resp.StatusCode != http.StatusNotFound) { t.Errorf("Get(%v)= %v, want %v", tt.Path, resp.StatusCode, http.StatusNotFound) } }) } } func TestNewOpenIDMetadata(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 02 01:53:17 UTC 2023 - 14.8K bytes - Viewed (0) -
tests/integration/security/egress_sidecar_tls_origination_test.go
credentialToUse: credNameGeneric, from: apps.Ns1.A, drSelector: "a", authorizeSidecar: true, expectedResponse: ingressutil.ExpectedResponse{ StatusCode: http.StatusOK, }, }, // Mutual TLS origination from an unauthorized sidecar to https endpoint // This will result in a 503 with the UH flag because the cluster will
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 10.4K bytes - Viewed (0) -
plugin/pkg/admission/imagepolicy/admission.go
}) if err := result.Error(); err != nil { return a.webhookError(pod, attributes, err) } var statusCode int if result.StatusCode(&statusCode); statusCode < 200 || statusCode >= 300 { return a.webhookError(pod, attributes, fmt.Errorf("Error contacting webhook: %d", statusCode)) } if err := result.Into(review); err != nil { return a.webhookError(pod, attributes, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 06:05:06 UTC 2023 - 9.8K bytes - Viewed (0) -
docs/de/docs/tutorial/handling-errors.md
```Python hl_lines="11" {!../../../docs_src/handling_errors/tutorial001.py!} ``` ### Die resultierende Response Wenn der Client `http://example.com/items/foo` anfragt (ein `item_id` `"foo"`), erhält dieser Client einen HTTP-Statuscode 200 und folgende JSON-Response: ```JSON { "item": "The Foo Wrestlers" } ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:28:29 UTC 2024 - 10.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go
// return a generic error here. if backendHTTPResponse.StatusCode != http.StatusSwitchingProtocols && backendHTTPResponse.StatusCode < 400 { err := fmt.Errorf("invalid upgrade response: status code %d", backendHTTPResponse.StatusCode) klog.Errorf("Proxy upgrade error: %v", err) h.Responder.Error(w, req, err) return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 04 19:10:30 UTC 2024 - 19.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel_test.go
header http.Header written []byte statusCode int } func (mrw *mockResponseWriter) Header() http.Header { return mrw.header } func (mrw *mockResponseWriter) Write(p []byte) (int, error) { mrw.written = append(mrw.written, p...) return len(p), nil } func (mrw *mockResponseWriter) WriteHeader(statusCode int) { mrw.statusCode = statusCode } // fakeResponder implements "rest.Responder" interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 02:21:50 UTC 2024 - 22.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/genericapiserver_test.go
assert.NoError(err) data, _ := io.ReadAll(resp.Body) if http.StatusOK != resp.StatusCode { t.Logf("got %d", resp.StatusCode) t.Log(string(data)) return false, nil } return true, nil })) resp, err = http.Get(server.URL + "/healthz/ping") assert.NoError(err) assert.Equal(http.StatusOK, resp.StatusCode) } func TestUpdateOpenAPISpec(t *testing.T) { _, ctx := ktesting.NewTestContext(t)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 23.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go
}) var statusCode int result.StatusCode(&statusCode) if statusCode != http.StatusNotAcceptable { t.Errorf("unexpected status code: %d", statusCode) } result = wh.WithExponentialBackoff(context.Background(), func() rest.Result { return wh.RestClient.Get().Do(context.TODO()) }) result.StatusCode(&statusCode) if statusCode != http.StatusOK {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 25.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/apiclient/wait.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 13.3K bytes - Viewed (0)