Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for NewRequestWithContext (0.21 sec)

  1. cmd/batch-handlers.go

    		return nil
    	}
    
    	buf, err := json.Marshal(ri)
    	if err != nil {
    		return err
    	}
    
    	ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
    	defer cancel()
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, endpoint, bytes.NewReader(buf))
    	if err != nil {
    		return err
    	}
    
    	if token != "" {
    		req.Header.Set("Authorization", token)
    	}
    	req.Header.Set("Content-Type", "application/json")
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 18 15:32:09 UTC 2024
    - 62.2K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users_test.go

    	u, err := url.Parse(fmt.Sprintf("%s://%s/minio/admin/v3/add-user?%s", ep.Scheme, ep.Host, s3utils.QueryEncode(urlValue)))
    	if err != nil {
    		c.Fatalf("unexpected url parse err: %v", err)
    	}
    	req, err := http.NewRequestWithContext(ctx, http.MethodPut, u.String(), nil)
    	if err != nil {
    		c.Fatalf("unexpected new request err: %v", err)
    	}
    	reqBodyArg := madmin.UserInfo{
    		SecretKey:  secretKey,
    		PolicyName: "consoleAdmin",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    	}
    }
    
    func getKubernetesInfo(dctx context.Context) madmin.KubernetesInfo {
    	ctx, cancel := context.WithCancel(dctx)
    	defer cancel()
    
    	ki := madmin.KubernetesInfo{}
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodGet, kubernetesVersionEndpoint, nil)
    	if err != nil {
    		ki.Error = err.Error()
    		return ki
    	}
    
    	client := &http.Client{
    		Transport: globalRemoteTargetTransport,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  4. cmd/bucket-replication.go

    	reqURL := &url.URL{
    		Scheme: epURL.Scheme,
    		Host:   epURL.Host,
    		Path:   healthCheckPathPrefix + healthCheckReadinessPath,
    	}
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodGet, reqURL.String(), nil)
    	if err != nil {
    		return err
    	}
    
    	client := &http.Client{
    		Transport: globalRemoteTargetTransport,
    		Timeout:   10 * time.Second,
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  5. api/go1.13.txt

    pkg net/http, const SameSiteNoneMode = 4
    pkg net/http, const SameSiteNoneMode SameSite
    pkg net/http, const StatusEarlyHints = 103
    pkg net/http, const StatusEarlyHints ideal-int
    pkg net/http, func NewRequestWithContext(context.Context, string, string, io.Reader) (*Request, error)
    pkg net/http, method (Header) Clone() Header
    pkg net/http, method (*Request) Clone(context.Context) *Request
    pkg net/http, method (*Transport) Clone() *Transport
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
Back to top