- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 95 for MethodGet (0.16 sec)
-
staging/src/k8s.io/apiserver/pkg/server/filters/with_retry_after_test.go
return false }, safeWG) wrapped = WithRetryAfter(wrapped, test.shutdownDelayDurationElapsedFn()) req, err := http.NewRequest(http.MethodGet, test.requestURL, nil) if err != nil { t.Fatalf("failed to create new http request - %v", err) } req.Header.Set("User-Agent", test.userAgent)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 31 14:10:46 UTC 2021 - 6.1K bytes - Viewed (0) -
cmd/generic-handlers.go
globalBrowserEnabled && aType == authTypeAnonymous } 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) -
internal/handlers/forwarder.go
outReq.Proto = "HTTP/1.1" outReq.ProtoMajor = 1 outReq.ProtoMinor = 1 f.rewriter.Rewrite(outReq) // Disable closeNotify when method GET for http pipelining if outReq.Method == http.MethodGet { quietReq := outReq.WithContext(context.Background()) *outReq = *quietReq } } // headerRewriter is responsible for removing hop-by-hop headers and setting forwarding headers type headerRewriter struct{}
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 07 05:42:10 UTC 2023 - 5.6K bytes - Viewed (0) -
cmd/test-utils_test.go
case "GetBucketPolicy": // Register Get Bucket policy HTTP Handler. bucket.Methods(http.MethodGet).HandlerFunc(api.GetBucketPolicyHandler).Queries("policy", "") case "GetBucketLifecycle": bucket.Methods(http.MethodGet).HandlerFunc(api.GetBucketLifecycleHandler).Queries("lifecycle", "") case "PutBucketLifecycle":
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 76.9K bytes - Viewed (0) -
cmd/bucket-policy-handlers_test.go
recV4 := httptest.NewRecorder() // construct HTTP request for PUT bucket policy endpoint. reqV4, err := newTestSignedRequestV4(http.MethodGet, getGetPolicyURL("", testCase.bucketName), 0, nil, testCase.accessKey, testCase.secretKey, nil) if err != nil { t.Fatalf("Test %d: Failed to create HTTP request for GetBucketPolicyHandler: <ERROR> %v", i+1, err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 32.9K bytes - Viewed (0) -
pkg/istio-agent/health/health_probers.go
targetURL.Host = net.JoinHostPort(h.Config.Host, strconv.Itoa(int(h.Config.Port))) if err != nil { healthCheckLog.Errorf("unable to parse url: %v", err) return Unknown, err } req, err := http.NewRequest(http.MethodGet, targetURL.String(), nil) if err != nil { return Unknown, err } req.Header = headers if headers.Get("Host") != "" { req.Host = headers.Get("Host") } if _, ok := headers["User-Agent"]; !ok {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 5.7K bytes - Viewed (0) -
pkg/wasm/httpfetcher.go
o.InitialInterval = f.initialBackoff b := backoff.NewExponentialBackOff(o) var lastError error for attempts < f.requestMaxRetry { attempts++ req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil) if err != nil { wasmLog.Debugf("wasm module download request failed: %v", err) return nil, err } resp, err := c.Do(req) if err != nil { lastError = err
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 14 20:23:34 UTC 2022 - 5.5K bytes - Viewed (0) -
api/go1.6.txt
pkg net/http, const MethodConnect = "CONNECT" pkg net/http, const MethodConnect ideal-string 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 13 23:40:13 UTC 2016 - 12.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_deadline_test.go
url: "/api/v1/namespaces?timeout=foo", message: invalidTimeoutInURL, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { request, err := http.NewRequest(http.MethodGet, test.url, nil) if err != nil { t.Fatalf("failed to create new http request - %v", err) } timeoutGot, ok, err := parseTimeout(request) if test.expected != ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 14 23:04:34 UTC 2022 - 16.7K bytes - Viewed (0) -
pkg/test/fakes/imageregistry/main.go
err := json.NewDecoder(r.Body).Decode(&m) if err != nil { http.Error(w, err.Error(), http.StatusBadRequest) return } h.tagMap = m w.WriteHeader(http.StatusOK) case http.MethodGet: if jsEncodedMap, err := json.Marshal(h.tagMap); err == nil { w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) fmt.Fprintf(w, "%s", jsEncodedMap) } else {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 6.2K bytes - Viewed (0)