Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 148 for headers (0.27 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/api-headers.go

    func setEventStreamHeaders(w http.ResponseWriter) {
    	w.Header().Set(xhttp.ContentType, "text/event-stream")
    	w.Header().Set(xhttp.CacheControl, "no-cache") // nginx to turn off buffering
    	w.Header().Set("X-Accel-Buffering", "no")      // nginx to turn off buffering
    }
    
    // Write http common headers
    func setCommonHeaders(w http.ResponseWriter) {
    	// Set the "Server" http header.
    	w.Header().Set(xhttp.ServerInfo, MinioStoreName)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K 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. internal/crypto/error.go

    	// ErrIncompatibleEncryptionMethod indicates that both SSE-C headers and SSE-S3 headers were specified, and are incompatible
    	// The client needs to remove the SSE-S3 header or the SSE-C headers
    	ErrIncompatibleEncryptionMethod = Errorf("Server side encryption specified with both SSE-C and SSE-S3 headers")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. 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)
  6. cmd/handler-utils_test.go

    		}
    	}
    }
    
    // Tests validate metadata extraction from http headers.
    func TestExtractMetadataHeaders(t *testing.T) {
    	testCases := []struct {
    		header     http.Header
    		metadata   map[string]string
    		shouldFail bool
    	}{
    		// Validate if there a known 'content-type'.
    		{
    			header: http.Header{
    				"Content-Type": []string{"image/png"},
    			},
    			metadata: map[string]string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 6.1K 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/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)
  9. 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)
  10. cmd/object-handlers.go

    				w.Header().Set(xhttp.AmzServerSideEncryptionKmsContext, kmsCtx)
    			}
    		case crypto.SSEC:
    			w.Header().Set(xhttp.AmzServerSideEncryptionCustomerAlgorithm, r.Header.Get(xhttp.AmzServerSideEncryptionCustomerAlgorithm))
    			w.Header().Set(xhttp.AmzServerSideEncryptionCustomerKeyMD5, r.Header.Get(xhttp.AmzServerSideEncryptionCustomerKeyMD5))
    		}
    		objInfo.ETag = getDecryptedETag(r.Header, objInfo, false)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top