Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 77 for StatusCode (0.24 sec)

  1. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go

    		// regular errors return errors but do not retry
    		{name: "404 doesnt retry", attr: aliceAttr, allow: false, statusCode: 404, expectedErr: true, expectedAuthorized: false, expectedCalls: 1},
    		{name: "403 doesnt retry", attr: aliceAttr, allow: false, statusCode: 403, expectedErr: true, expectedAuthorized: false, expectedCalls: 1},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. src/net/http/cgi/host.go

    			h.handleInternalRedirect(rw, req, loc)
    			return
    		}
    		if statusCode == 0 {
    			statusCode = http.StatusFound
    		}
    	}
    
    	if statusCode == 0 && headers.Get("Content-Type") == "" {
    		rw.WriteHeader(http.StatusInternalServerError)
    		h.printf("cgi: missing required Content-Type in headers")
    		return
    	}
    
    	if statusCode == 0 {
    		statusCode = http.StatusOK
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler_test.go

    	// get sent again
    	second, _, _ := fetchPath(manager, "application/json", discoveryPath, "wrongetag")
    
    	assert.Equal(t, http.StatusOK, initial.StatusCode, "response should be 200 OK")
    	assert.Equal(t, http.StatusOK, second.StatusCode, "response should be 200 OK")
    	assert.Equal(t, initial.Header.Get("ETag"), second.Header.Get("ETag"), "ETag of both requests should be equal")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 00:29:39 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  4. pkg/spiffe/spiffe_test.go

    		t.Errorf("Unexpected spiffe URI for empty namespace and service account: %s", nonsense)
    	}
    }
    
    type handler struct {
    	statusCode int
    	body       []byte
    }
    
    func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
    	w.WriteHeader(h.statusCode)
    	w.Write(h.body)
    }
    
    func TestRetrieveSpiffeBundleRootCerts(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  5. cmd/object-lambda-handlers.go

    	"Not Extended":                    http.StatusNotExtended,
    	"Network Authentication Required": http.StatusNetworkAuthenticationRequired,
    }
    
    // StatusCode returns a HTTP Status code for the HTTP text. It returns -1
    // if the text is unknown.
    func StatusCode(text string) int {
    	if code, ok := statusTextToCode[text]; ok {
    		return code
    	}
    	return -1
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. tests/integration/security/sds_ingress/ingress_test.go

    								ingressutil.ExpectedResponse{StatusCode: http.StatusOK})
    						})
    						t.NewSubTest("request with client certificates").Run(func(t framework.TestContext) {
    							// Send a TLS request with client certificates.
    							ingressutil.SendRequestOrFail(t, ing, host, credName, ingressutil.Mtls, tlsContext,
    								ingressutil.ExpectedResponse{StatusCode: http.StatusOK})
    						})
    					})
    			}
    		})
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top