Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/net/http/response.go

    	resp.Status = strings.TrimLeft(status, " ")
    
    	statusCode, _, _ := strings.Cut(resp.Status, " ")
    	if len(statusCode) != 3 {
    		return nil, badStringError("malformed HTTP status code", statusCode)
    	}
    	resp.StatusCode, err = strconv.Atoi(statusCode)
    	if err != nil || resp.StatusCode < 0 {
    		return nil, badStringError("malformed HTTP status code", statusCode)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. cmd/update.go

    			StatusCode: http.StatusInternalServerError,
    		}
    	}
    	defer xhttp.DrainBody(resp.Body)
    
    	if resp.StatusCode != http.StatusOK {
    		return content, AdminError{
    			Code:       AdminUpdateUnexpectedFailure,
    			Message:    fmt.Sprintf("Error downloading URL %s. Response: %v", u, resp.Status),
    			StatusCode: resp.StatusCode,
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    	var statusCode int
    	result := &authorizationv1.SubjectAccessReview{}
    
    	restResult := t.client.Post().Body(subjectAccessReview).Do(ctx)
    
    	restResult.StatusCode(&statusCode)
    	err := restResult.Into(result)
    
    	return result, statusCode, err
    }
    
    // subjectAccessReviewV1beta1ClientGW used by the generic webhook, doesn't specify GVR.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. plugin/pkg/admission/imagepolicy/admission_test.go

    	tests := []webhookCacheTestCase{
    		{statusCode: 500, expectedErr: true, expectedAuthorized: false, expectedCached: false},
    		{statusCode: 404, expectedErr: true, expectedAuthorized: false, expectedCached: false},
    		{statusCode: 403, expectedErr: true, expectedAuthorized: false, expectedCached: false},
    		{statusCode: 401, expectedErr: true, expectedAuthorized: false, expectedCached: false},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 32.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top