Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for MethodHead (0.16 sec)

  1. cmd/api-router.go

    		api:     "requestPayment",
    		methods: []string{http.MethodPut, http.MethodDelete},
    		queries: []string{"requestPayment", ""},
    	},
    	{
    		api:     "acl",
    		methods: []string{http.MethodDelete, http.MethodPut, http.MethodHead},
    		queries: []string{"acl", ""},
    	},
    	{
    		api:     "publicAccessBlock",
    		methods: []string{http.MethodDelete, http.MethodPut, http.MethodGet},
    		queries: []string{"publicAccessBlock", ""},
    	},
    	{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    }
    
    func setBrowserRedirectMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		read := r.Method == http.MethodGet || r.Method == http.MethodHead
    		// Re-direction is handled specifically for browser requests.
    		if !guessIsHealthCheckReq(r) && guessIsBrowserReq(r) && read && globalBrowserRedirect {
    			// Fetch the redirect location if any.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 01:01:15 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  3. cmd/bucket-handlers_test.go

    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		rec := httptest.NewRecorder()
    		// construct HTTP request for HEAD bucket.
    		req, err := newTestSignedRequestV4(http.MethodHead, getHEADBucketURL("", testCase.bucketName), 0, nil, testCase.accessKey, testCase.secretKey, nil)
    		if err != nil {
    			t.Fatalf("Test %d: %s: Failed to create HTTP request for HeadBucketHandler: <ERROR> %v", i+1, instanceType, err)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  4. api/go1.6.txt

    pkg net/http, const MethodDelete = "DELETE"
    pkg net/http, const MethodDelete ideal-string
    pkg net/http, const MethodGet = "GET"
    pkg net/http, const MethodGet ideal-string
    pkg net/http, const MethodHead = "HEAD"
    pkg net/http, const MethodHead ideal-string
    pkg net/http, const MethodOptions = "OPTIONS"
    pkg net/http, const MethodOptions ideal-string
    pkg net/http, const MethodPatch = "PATCH"
    pkg net/http, const MethodPatch ideal-string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/init_test.go

    		}
    	}
    }
    
    func TestInitDataClientWithNonDefaultKubeconfig(t *testing.T) {
    	ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		if r.Method != http.MethodHead {
    			w.WriteHeader(http.StatusMethodNotAllowed)
    		}
    	}))
    	defer ts.Close()
    
    	kubeconfigPath := filepath.Join(t.TempDir(), "custom.conf")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. internal/config/identity/plugin/config.go

    func (o *AuthNPlugin) checkConnectivity(ctx context.Context) bool {
    	ctx, cancel := context.WithTimeout(ctx, healthCheckTimeout)
    	defer cancel()
    	u := url.URL(*o.args.URL)
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodHead, u.String(), nil)
    	if err != nil {
    		authNLogIf(ctx, err)
    		return false
    	}
    
    	if o.args.AuthToken != "" {
    		req.Header.Set("Authorization", o.args.AuthToken)
    	}
    
    	resp, err := o.client.Do(req)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. cmd/object-handlers-common.go

    func checkPreconditions(ctx context.Context, w http.ResponseWriter, r *http.Request, objInfo ObjectInfo, opts ObjectOptions) bool {
    	// Return false for methods other than GET and HEAD.
    	if r.Method != http.MethodGet && r.Method != http.MethodHead {
    		return false
    	}
    	// If the object doesn't have a modtime (IsZero), or the modtime
    	// is obviously garbage (Unix time == 0), then ignore modtimes
    	// and don't process the If-Modified-Since header.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. cmd/encryption-v1_test.go

    		expErr:  errInvalidEncryptionParameters,
    	},
    	{
    		info:    ObjectInfo{Size: 100, UserDefined: map[string]string{}},
    		request: &http.Request{Method: http.MethodHead, Header: http.Header{xhttp.AmzServerSideEncryptionCustomerAlgorithm: []string{xhttp.AmzEncryptionAES}}},
    		expErr:  errInvalidEncryptionParameters,
    	},
    	{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Sep 24 04:17:08 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    	// This is essentially a hack for https://issue.k8s.io/4958.
    	// Note: Keep this code after tryUpgrade to not break that flow.
    	if len(path) == 0 && (method == http.MethodGet || method == http.MethodHead) {
    		var queryPart string
    		if len(req.URL.RawQuery) > 0 {
    			queryPart = "?" + req.URL.RawQuery
    		}
    		w.Header().Set("Location", req.URL.Path+"/"+queryPart)
    		w.WriteHeader(http.StatusMovedPermanently)
    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. cmd/encryption-v1.go

    	}
    	if r == nil {
    		return false, errInvalidArgument
    	}
    
    	headers := r.Header
    
    	// disallow X-Amz-Server-Side-Encryption header on HEAD and GET
    	switch r.Method {
    	case http.MethodGet, http.MethodHead:
    		if crypto.S3.IsRequested(headers) || crypto.S3KMS.IsRequested(headers) {
    			return false, errInvalidEncryptionParameters
    		}
    	}
    
    	_, encrypted = crypto.IsEncrypted(info.UserDefined)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top