Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 279 for headers (0.47 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. internal/http/lambda-headers.go

    	AmzFwdHeaderChecksumSha1       = "x-amz-fwd-header-x-amz-checksum-sha1"
    	AmzFwdHeaderChecksumSha256     = "x-amz-fwd-header-x-amz-checksum-sha256"
    	AmzFwdHeaderDeleteMarker       = "x-amz-fwd-header-x-amz-delete-marker"
    	AmzFwdHeaderETag               = "x-amz-fwd-header-ETag"
    	AmzFwdHeaderExpires            = "x-amz-fwd-header-Expires"
    	AmzFwdHeaderExpiration         = "x-amz-fwd-header-x-amz-expiration"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 07 16:12:41 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  4. cmd/api-headers_test.go

    Harshavardhana <******@****.***> 1641143706 -0800
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  5. internal/crypto/sse_test.go

    	}
    }
    
    var ssecUnsealObjectKeyTests = []struct {
    	Headers        http.Header
    	Bucket, Object string
    	Metadata       map[string]string
    
    	ExpectedErr error
    }{
    	{ // 0 - Valid HTTP headers and valid metadata entries for bucket/object
    		Headers: http.Header{
    			"X-Amz-Server-Side-Encryption-Customer-Algorithm": []string{"AES256"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. internal/bucket/encryption/bucket-sse-config.go

    }
    
    // Apply applies the SSE bucket configuration on the given HTTP headers and
    // sets the specified SSE headers.
    //
    // Apply does not overwrite any existing SSE headers. Further, it will
    // set minimal SSE-KMS headers if autoEncrypt is true and the BucketSSEConfig
    // is nil.
    func (b *BucketSSEConfig) Apply(headers http.Header, opts ApplyOptions) {
    	if crypto.Requested(headers) {
    		return
    	}
    	if b == nil {
    		if opts.AutoEncrypt {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  9. cmd/signature-v4-utils.go

    	}
    	extractedSignedHeaders := make(http.Header)
    	for _, header := range signedHeaders {
    		// `host` will not be found in the headers, can be found in r.Host.
    		// but its always necessary that the list of signed headers containing host in it.
    		val, ok := reqHeaders[http.CanonicalHeaderKey(header)]
    		if !ok {
    			// try to set headers from Query String
    			val, ok = reqQueries[header]
    		}
    		if ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  10. 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)
Back to top