Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 95 for MethodGet (0.17 sec)

  1. cmd/encryption-v1_test.go

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

    						t.Fatal(err)
    					}
    				}
    
    				client := &http.Client{
    					Transport: tr,
    				}
    
    				for i := 0; i < reqs; i++ {
    					req, err := http.NewRequest(http.MethodGet, s.URL, nil)
    					if err != nil {
    						t.Fatal(err)
    					}
    					if len(tc.authorizationHeader) > 0 {
    						req.Header.Set("Authorization", tc.authorizationHeader)
    					}
    
    					resp, err := client.Do(req)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  3. src/net/http/fs_test.go

    	}
    
    	// Get contents via various methods.
    	//
    	// See https://go.dev/issue/59471 for a proposal to limit the set of methods handled.
    	// For now, test the historical behavior.
    	for _, method := range []string{
    		MethodGet,
    		MethodPost,
    		MethodPut,
    		MethodPatch,
    		MethodDelete,
    		MethodOptions,
    		MethodTrace,
    	} {
    		req.Method = method
    		_, body := getBody(t, method, req, c)
    		if !bytes.Equal(body, file) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  4. pkg/kube/client.go

    	}
    
    	result := map[string][]byte{}
    	for _, istiod := range istiods {
    		monitoringPort := FindIstiodMonitoringPort(&istiod)
    		res, err := c.portForwardRequest(ctx, istiod.Name, istiod.Namespace, http.MethodGet, path, monitoringPort)
    		if err != nil {
    			return nil, err
    		}
    		if len(res) > 0 {
    			result[istiod.Name] = res
    		}
    	}
    	// If any Discovery servers responded, treat as a success
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 39K bytes
    - Viewed (0)
  5. pilot/pkg/model/jwks_resolver.go

    		defer func() {
    			if e != nil {
    				networkFetchFailCounter.Increment()
    			} else {
    				networkFetchSuccessCounter.Increment()
    			}
    		}()
    		req, err := http.NewRequestWithContext(ctx, http.MethodGet, uri, nil)
    		if err != nil {
    			return nil, err
    		}
    		resp, err := client.Do(req)
    		if err != nil {
    			return nil, err
    		}
    		defer resp.Body.Close()
    
    		body, err := io.ReadAll(resp.Body)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. 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)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go

    		postfix string
    		method  string
    	}{
    		{"/simple?labelSelector=<invalid>", http.MethodGet},
    		{"/simple/foo?gracePeriodSeconds=<invalid>", http.MethodDelete},
    		// {"/simple?labelSelector=<value>", http.MethodDelete}, TODO: implement DeleteCollection in  SimpleRESTStorage
    		// {"/simple/foo?export=<invalid>", http.MethodGet}, TODO: there is no invalid bool in conversion. Should we be more strict?
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 20:15:22 UTC 2023
    - 158.7K bytes
    - Viewed (0)
  8. src/go/types/methodset.go

    	"fmt"
    	"sort"
    	"strings"
    )
    
    // A MethodSet is an ordered set of concrete or abstract (interface) methods;
    // a method is a [MethodVal] selection, and they are ordered by ascending m.Obj().Id().
    // The zero value for a MethodSet is a ready-to-use empty method set.
    type MethodSet struct {
    	list []*Selection
    }
    
    func (s *MethodSet) String() string {
    	if s.Len() == 0 {
    		return "MethodSet {}"
    	}
    
    	var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc.go

    	// urlToRewrite is the URL to rewrite to the discovery URL
    	urlToRewrite string
    }
    
    func (t *discoveryURLRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
    	if req.Method == http.MethodGet && req.URL.String() == t.urlToRewrite {
    		clone := req.Clone(req.Context())
    		clone.Host = ""
    		clone.URL = t.discoveryURL
    		return t.base.RoundTrip(clone)
    	}
    	return t.base.RoundTrip(req)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 09 19:29:33 UTC 2024
    - 37.9K bytes
    - Viewed (0)
Back to top