Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for headers (0.17 sec)

  1. cmd/test-utils_test.go

    			headerMap[strings.ToLower(k)] = vv
    		}
    	}
    
    	// Get header keys.
    	headers := []string{"host"}
    	for k := range headerMap {
    		headers = append(headers, k)
    	}
    	sort.Strings(headers)
    
    	// Get canonical headers.
    	var buf bytes.Buffer
    	for _, k := range headers {
    		buf.WriteString(k)
    		buf.WriteByte(':')
    		switch {
    		case k == "host":
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  2. 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 (7)
  3. 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)
  4. .bazelrc

    build:windows --copt=/Zc:__cplusplus
    build:windows --host_copt=/Zc:__cplusplus
    
    # Tensorflow uses M_* math constants that only get defined by MSVC headers if
    # _USE_MATH_DEFINES is defined.
    build:windows --copt=/D_USE_MATH_DEFINES
    build:windows --host_copt=/D_USE_MATH_DEFINES
    
    # Windows has a relatively short command line limit, which TF has begun to hit.
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Thu May 02 19:34:20 GMT 2024
    - 52.8K bytes
    - Viewed (2)
  5. cmd/bucket-handlers.go

    		if crypto.SSECopy.IsRequested(r.Header) {
    			writeErrorResponse(ctx, w, toAPIError(ctx, errInvalidEncryptionParameters), r.URL)
    			return
    		}
    
    		if crypto.SSEC.IsRequested(r.Header) && crypto.S3.IsRequested(r.Header) {
    			writeErrorResponse(ctx, w, toAPIError(ctx, crypto.ErrIncompatibleEncryptionMethod), r.URL)
    			return
    		}
    
    		if crypto.SSEC.IsRequested(r.Header) && crypto.S3KMS.IsRequested(r.Header) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  6. cmd/xl-storage-format-v2.go

    					case !strict && ver.header.matchesNotStrict(latest.header):
    						latestCount++
    					default:
    						latestCount = 1
    					}
    					latest = ver
    					continue
    				}
    
    				// Mismatch, but older.
    				if latestCount > 0 && !strict && ver.header.matchesNotStrict(latest.header) {
    					latestCount++
    					continue
    				}
    				if latestCount > 0 && ver.header.VersionID == latest.header.VersionID {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  7. 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)
  8. internal/bucket/lifecycle/lifecycle_test.go

    		lc.SetPredictionHeaders(w, tc.obj)
    		if expHdrs, ok := w.Header()[xhttp.AmzExpiration]; ok && !strings.Contains(expHdrs[0], lc.Rules[tc.expRuleID].ID) {
    			t.Fatalf("Test %d: Expected %s header", i+1, xhttp.AmzExpiration)
    		}
    		if transHdrs, ok := w.Header()[xhttp.MinIOTransition]; ok {
    			if !strings.Contains(transHdrs[0], lc.Rules[tc.transRuleID].ID) {
    				t.Fatalf("Test %d: Expected %s header", i+1, xhttp.MinIOTransition)
    			}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  9. cmd/admin-handlers-users.go

    	defer zipWriter.Close()
    	rawDataFn := func(r io.Reader, filename string, sz int) error {
    		header, zerr := zip.FileInfoHeader(dummyFileInfo{
    			name:    filename,
    			size:    int64(sz),
    			mode:    0o600,
    			modTime: time.Now(),
    			isDir:   false,
    			sys:     nil,
    		})
    		if zerr != nil {
    			adminLogIf(ctx, zerr)
    			return nil
    		}
    		header.Method = zip.Deflate
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  10. cmd/xl-storage.go

    			if fi.InlineData() {
    				// If written with header we are fine.
    				return fi, nil
    			}
    			if fi.Size == 0 || !(fi.VersionID != "" && fi.VersionID != nullVersionID) {
    				// If versioned we have no conflicts.
    				fi.SetInlineData()
    				return fi, nil
    			}
    
    			// For overwritten objects without header we might have a
    			// conflict with data written later. Check the data path
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top