- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 95 for MethodGet (0.14 sec)
-
cmd/signature-v4_test.go
query := url.Values{} for key, value := range testCase.queryParams { query.Set(key, value) } // Create a request to use. req, e := http.NewRequest(http.MethodGet, "http://host/a/b?"+query.Encode(), nil) if e != nil { t.Errorf("(%d) failed to create http.Request, got %v", i, e) } // Do the same for the headers. for key, value := range testCase.headers {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jun 13 22:26:38 UTC 2024 - 10.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go
t.Error(err) } } func createGetRequestWithUrl(rawUrlString string) *http.Request { url, _ := url.Parse(rawUrlString) return &http.Request{ Method: http.MethodGet, Proto: "HTTP/1.1", URL: url, } } func TestInformerSyncHealthChecker(t *testing.T) { t.Run("test that check returns nil when all informers are started", func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 20:43:16 UTC 2023 - 11.4K bytes - Viewed (0) -
cmd/prepare-storage.go
httpClient := &http.Client{ Transport: globalInternodeTransport, } ctx, cancel := context.WithTimeout(GlobalContext, timeout) defer cancel() req, err := http.NewRequestWithContext(ctx, http.MethodGet, serverURL.String(), nil) if err != nil { return err } // Indicate that the liveness check for a peer call req.Header.Set(xhttp.MinIOPeerCall, "true") resp, err := httpClient.Do(req)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun May 19 08:06:49 UTC 2024 - 11.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/goaway_test.go
func requestGOAWAYServer(client *http.Client, serverBaseURL, url string) (<-chan watchResponse, error) { method := http.MethodGet var reqBody io.Reader if url == urlPost || url == urlPostWithGoaway { method = http.MethodPost reqBody = bytes.NewReader(requestPostBody) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 12:58:54 UTC 2021 - 13.9K bytes - Viewed (0) -
cmd/admin-handlers_test.go
globalMinioAddr = "127.0.0.1:9000" // Prepare query params for set-config mgmt REST API. queryVal := url.Values{} queryVal.Set("info", "") req, err := buildAdminRequest(queryVal, http.MethodGet, "/info", 0, nil) if err != nil { t.Fatalf("Failed to construct get-config object request - %v", err) } rec := httptest.NewRecorder() adminTestBed.router.ServeHTTP(rec, req)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 13.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/apiclient/wait.go
w.timeout, true, func(ctx context.Context) (bool, error) { client := &http.Client{Transport: netutil.SetOldTransportDefaults(&http.Transport{})} req, err := http.NewRequestWithContext(ctx, http.MethodGet, healthzEndpoint, nil) if err != nil { lastError = formatError(fmt.Sprintf("error: %v", err)) return false, err } resp, err := client.Do(req) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 13.3K bytes - Viewed (0) -
cmd/utils.go
return "", fmt.Errorf("url parse err: %v", err) } // Start the user auth flow. This page would present the login with // email or LDAP option. req, err := http.NewRequestWithContext(ctx, http.MethodGet, u.String(), nil) if err != nil { return "", fmt.Errorf("new request err: %v", err) } _, err = dexClient.Do(req) // fmt.Printf("Do: %#v %#v\n", resp, err) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jun 05 22:00:34 UTC 2024 - 31.9K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server.go
if err != nil { log.Warnf("Failed to parse timeout header %v: %v", timeoutString, err) } else { ctx, cancel = context.WithTimeout(ctx, timeout) } } req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil) if err != nil { return nil, cancel, "", err } applyHeaders(req.Header, header, "Accept", "User-Agent", "X-Prometheus-Scrape-Timeout-Seconds", ) resp, err := s.http.Do(req)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 31.1K bytes - Viewed (1) -
cmd/object-handlers-common.go
// If-None-Match 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
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 14.6K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
{ // this is to test that the path is an url encoded string, still using // slash as separators name: "no-predefined-kv-with-mixed-values", in: func() string { req, _ := http.NewRequest(http.MethodGet, "%2Finject%2Frootpage1%2Ffoo%2Frootpage2%2Fbar", nil) return req.URL.Path }(), want: map[string]string{"ROOTPAGE1": "foo", "ROOTPAGE2": "bar"}, }, {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1)