Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for helper (0.15 sec)

  1. cmd/api-errors.go

    	},
    	ErrMissingContentLength: {
    		Code:           "MissingContentLength",
    		Description:    "You must provide the Content-Length HTTP header.",
    		HTTPStatusCode: http.StatusLengthRequired,
    	},
    	ErrMissingContentMD5: {
    		Code:           "MissingContentMD5",
    		Description:    "Missing required header for this request: Content-Md5.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMissingSecurityHeader: {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (6)
  2. cmd/batch-handlers.go

    	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")
    
    	clnt := http.Client{Transport: getRemoteInstanceTransport()}
    	resp, err := clnt.Do(req)
    	if err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    // GetObjectNInfo - returns object info and an object
    // Read(Closer). When err != nil, the returned reader is always nil.
    func (er erasureObjects) GetObjectNInfo(ctx context.Context, bucket, object string, rs *HTTPRangeSpec, h http.Header, opts ObjectOptions) (gr *GetObjectReader, err error) {
    	if !opts.NoAuditLog {
    		auditObjectErasureSet(ctx, object, &er)
    	}
    
    	var unlockOnDefer bool
    	nsUnlocker := func() {}
    	defer func() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
Back to top