Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for MethodHead (0.23 sec)

  1. cmd/healthcheck-router.go

    	healthRouter.Methods(http.MethodHead).Path(healthCheckClusterPath).HandlerFunc(httpTraceAll(ClusterCheckHandler))
    	healthRouter.Methods(http.MethodGet).Path(healthCheckClusterReadPath).HandlerFunc(httpTraceAll(ClusterReadCheckHandler))
    	healthRouter.Methods(http.MethodHead).Path(healthCheckClusterReadPath).HandlerFunc(httpTraceAll(ClusterReadCheckHandler))
    
    	// Liveness handler
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jan 23 11:12:47 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. cmd/healthcheck-handler.go

    		return
    	}
    
    	if int(globalHTTPStats.loadRequestsInQueue()) > globalAPIConfig.getRequestsPoolCapacity() {
    		apiErr := getAPIError(ErrBusy)
    		switch r.Method {
    		case http.MethodHead:
    			writeResponse(w, apiErr.HTTPStatusCode, nil, mimeNone)
    		case http.MethodGet:
    			writeErrorResponse(r.Context(), w, apiErr, r.URL)
    		}
    		return
    	}
    
    	// Verify if KMS is reachable if its configured
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. src/net/http/method.go

    // license that can be found in the LICENSE file.
    
    package http
    
    // Common HTTP methods.
    //
    // Unless otherwise noted, these are defined in RFC 7231 section 4.3.
    const (
    	MethodGet     = "GET"
    	MethodHead    = "HEAD"
    	MethodPost    = "POST"
    	MethodPut     = "PUT"
    	MethodPatch   = "PATCH" // RFC 5789
    	MethodDelete  = "DELETE"
    	MethodConnect = "CONNECT"
    	MethodOptions = "OPTIONS"
    	MethodTrace   = "TRACE"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 04 22:11:56 UTC 2016
    - 517 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. internal/config/lambda/target/webhook.go

    func (target *WebhookTarget) isActive() (bool, error) {
    	ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
    	defer cancel()
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodHead, target.args.Endpoint.String(), nil)
    	if err != nil {
    		if xnet.IsNetworkOrHostDown(err, false) {
    			return false, errNotConnected
    		}
    		return false, err
    	}
    	tokens := strings.Fields(target.args.AuthToken)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. 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)
  10. cmd/server_test.go

    	response, err = s.client.Do(request)
    
    	c.Assert(err, nil)
    	// assert the http response status code.
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	request, err = newTestSignedRequest(http.MethodHead, getHeadObjectURL(s.endPoint, bucketName, "my-object-directory/"),
    		0, nil, s.accessKey, s.secretKey, s.signer)
    	c.Assert(err, nil)
    
    	// execute the HTTP request.
    	response, err = s.client.Do(request)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
Back to top