Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for headers (0.15 sec)

  1. internal/http/headers.go

    	// Header indicates that this request is a replication request to create a REPLICA
    	MinIOSourceReplicationRequest = "X-Minio-Source-Replication-Request"
    	// Header checks replication permissions without actually completing replication
    	MinIOSourceReplicationCheck = "X-Minio-Source-Replication-Check"
    	// Header indicates replication reset status.
    	MinIOReplicationResetStatus = "X-Minio-Replication-Reset-Status"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  2. cmd/signature-v4_test.go

    		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 {
    			req.Header.Set(key, value)
    		}
    
    		// parse form.
    		req.ParseForm()
    
    		// Check if it matches!
    		err := doesPresignedSignatureMatch(payloadSHA256, req, testCase.region, serviceS3)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  3. cmd/signature-v4-utils_test.go

    }
    
    // TestExtractSignedHeaders - Tests validate extraction of signed headers using list of signed header keys.
    func TestExtractSignedHeaders(t *testing.T) {
    	signedHeaders := []string{"host", "x-amz-content-sha256", "x-amz-date", "transfer-encoding"}
    
    	// If the `expect` key exists in the signed headers then golang server would have stripped out the value, expecting the `expect` header set to `100-continue` in the result.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  4. cmd/signature-v2.go

    }
    
    // Return canonical headers.
    func canonicalizedAmzHeadersV2(headers http.Header) string {
    	var keys []string
    	keyval := make(map[string]string, len(headers))
    	for key := range headers {
    		lkey := strings.ToLower(key)
    		if !strings.HasPrefix(lkey, "x-amz-") {
    			continue
    		}
    		keys = append(keys, lkey)
    		keyval[lkey] = strings.Join(headers[key], ",")
    	}
    	sort.Strings(keys)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  5. internal/hash/reader.go

    func (r *Reader) AddChecksumNoTrailer(headers http.Header, ignoreValue bool) error {
    	cs, err := GetContentChecksum(headers)
    	if err != nil {
    		return ErrInvalidChecksum
    	}
    	if cs == nil {
    		return nil
    	}
    	r.contentHash = *cs
    	return r.AddNonTrailingChecksum(cs, ignoreValue)
    }
    
    // AddNonTrailingChecksum will add a checksum to the reader.
    // The checksum cannot be trailing.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  6. internal/s3select/message.go

    //
    // Header specification:
    // Continuation messages contain two headers, as follows:
    // https://docs.aws.amazon.com/AmazonS3/latest/API/images/s3select-frame-diagram-cont.png
    //
    // Payload specification:
    // Continuation messages have no payload.
    var continuationMessage = []byte{
    	0, 0, 0, 57, // total byte-length.
    	0, 0, 0, 41, // headers byte-length.
    	139, 161, 157, 242, // prelude crc.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 15.2K bytes
    - Viewed (0)
  7. cmd/encryption-v1.go

    			if crypto.SSEC.IsRequested(headers) || crypto.SSECopy.IsRequested(headers) {
    				return encrypted, errEncryptedObject
    			}
    		}
    
    		if crypto.S3KMS.IsEncrypted(info.UserDefined) && r.Header.Get(xhttp.AmzCopySource) == "" {
    			if crypto.SSEC.IsRequested(headers) || crypto.SSECopy.IsRequested(headers) {
    				return encrypted, errEncryptedObject
    			}
    		}
    
    		if _, err = info.DecryptedSize(); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  8. cmd/encryption-v1_test.go

    			}
    		}
    
    	}
    }
    
    var getDefaultOptsTests = []struct {
    	headers        http.Header
    	copySource     bool
    	metadata       map[string]string
    	encryptionType encrypt.Type
    	err            error
    }{
    	{
    		headers: http.Header{
    			xhttp.AmzServerSideEncryptionCustomerAlgorithm: []string{"AES256"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  9. cmd/handler-utils.go

    		return map[string]string{}
    	}
    	return map[string]string{
    		"requestId":      w.Header().Get(xhttp.AmzRequestID),
    		"nodeId":         w.Header().Get(xhttp.AmzRequestHostID),
    		"content-length": w.Header().Get(xhttp.ContentLength),
    		// Add more fields here.
    	}
    }
    
    // Trims away `aws-chunked` from the content-encoding header if present.
    // Streaming signature clients can have custom content-encoding such as
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  10. cmd/bucket-object-lock.go

    // enforceRetentionBypassForDelete enforces whether an existing object under governance can be deleted
    // with governance bypass headers set in the request.
    // Objects under site wide WORM can never be overwritten.
    // For objects in "Governance" mode, overwrite is allowed if a) object retention date is past OR
    // governance bypass headers are set and user has governance bypass permissions.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top