Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for headers (0.18 sec)

  1. cmd/api-errors.go

    	},
    	ErrUnsupportedMetadata: {
    		Code:           "InvalidArgument",
    		Description:    "Your metadata headers are not supported.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrUnsupportedHostHeader: {
    		Code:           "InvalidArgument",
    		Description:    "Your Host header is malformed.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrObjectTampered: {
    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/object-api-errors.go

    func (e NotImplemented) Error() string {
    	return e.Message
    }
    
    // UnsupportedMetadata - unsupported metadata
    type UnsupportedMetadata struct{}
    
    func (e UnsupportedMetadata) Error() string {
    	return "Unsupported headers in Metadata"
    }
    
    // isErrBucketNotFound - Check if error type is BucketNotFound.
    func isErrBucketNotFound(err error) bool {
    	var bkNotFound BucketNotFound
    	return errors.As(err, &bkNotFound)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  3. cmd/erasure-object.go

    			readers[index] = newBitrotReader(disk, metaArr[index].Data, bucket, partPath, tillOffset,
    				checksumInfo.Algorithm, checksumInfo.Hash, erasure.ShardSize())
    
    			// Prefer local disks
    			prefer[index] = disk.Hostname() == ""
    		}
    
    		written, err := erasure.Decode(ctx, writer, readers, partOffset, partLength, partSize, prefer)
    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)
  4. cmd/common-main.go

    	ctxt.RecvBufSize = ctx.Int("recv-buf-size")
    
    	ctxt.ShutdownTimeout = ctx.Duration("shutdown-timeout")
    	ctxt.IdleTimeout = ctx.Duration("idle-timeout")
    	ctxt.ReadHeaderTimeout = ctx.Duration("read-header-timeout")
    	ctxt.MaxIdleConnsPerHost = ctx.Int("max-idle-conns-per-host")
    
    	if conf := ctx.String("config"); len(conf) > 0 {
    		err = mergeServerCtxtFromConfigFile(conf, ctxt)
    	} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  5. cmd/httprange_test.go

    		if err != nil && !testCase.errExpected || err == nil && testCase.errExpected {
    			t.Errorf("expected error with invalid range: %v", err)
    		}
    		if h != testCase.spec {
    			t.Errorf("Case %d: translated to incorrect header: %s expected: %s",
    				i, h, testCase.spec)
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  6. cmd/batch-handlers.go

    				VersionID: entry.VersionID,
    				Content:   gr,
    				Headers:   make(http.Header),
    				Close: func() {
    					gr.Close()
    				},
    			}
    
    			opts, err := batchReplicationOpts(ctx, "", gr.ObjInfo)
    			if err != nil {
    				batchLogIf(ctx, err)
    				continue
    			}
    
    			for k, vals := range opts.Header() {
    				for _, v := range vals {
    					snowballObj.Headers.Add(k, v)
    				}
    			}
    
    			input <- snowballObj
    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)
  7. cmd/httprange.go

    		return 0, 0, err
    	}
    
    	start = h.Start
    	if h.IsSuffixLength {
    		start = resourceSize + h.Start
    		if start < 0 {
    			start = 0
    		}
    	}
    	return start, length, nil
    }
    
    // Parse a HTTP range header value into a HTTPRangeSpec
    func parseRequestRangeSpec(rangeString string) (hrange *HTTPRangeSpec, err error) {
    	// Return error if given range string doesn't start with byte range prefix.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top