Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 278 for Content (0.2 sec)

  1. cmd/handler-utils_test.go

    	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{
    				"content-type": "image/png",
    			},
    			shouldFail: false,
    		},
    		// Validate if there are no keys to extract.
    		{
    			header: http.Header{
    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)
  2. internal/config/subnet/subnet.go

    	xhttp "github.com/minio/minio/internal/http"
    )
    
    const (
    	respBodyLimit = 1 << 20 // 1 MiB
    
    	// LoggerWebhookName - subnet logger webhook target
    	LoggerWebhookName = "subnet"
    )
    
    // Upload given file content (payload) to specified URL
    func (c Config) Upload(reqURL string, filename string, payload []byte) (string, error) {
    	if !c.Registered() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 27 16:35:36 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  3. tests/embedded_struct_test.go

    		t.Errorf("Expected to get Author name %v but got: %v", NewPost.Author.Name, hnPost.Author.Name)
    	}
    
    	if !reflect.DeepEqual(NewPost.Author.Content, hnPost.Author.Content) {
    		t.Errorf("Expected to get Author content %v but got: %v", NewPost.Author.Content, hnPost.Author.Content)
    	}
    
    	if hnPost.Author.ContentPtr != nil {
    		t.Errorf("Expected to get nil Author contentPtr but got: %v", hnPost.Author.ContentPtr)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Oct 26 03:58:13 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  4. cmd/metrics-v3-handler.go

    		contentType := r.Header.Get("Content-Type")
    		if contentType == "application/json" {
    			w.Header().Set("Content-Type", "application/json")
    			jsonEncoder := json.NewEncoder(w)
    			jsonEncoder.Encode(metrics)
    			return
    		}
    
    		// If not JSON, return plain text. We format it as a markdown table for
    		// readability.
    		w.Header().Set("Content-Type", "text/plain")
    		var b strings.Builder
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  5. cmd/object-api-deleteobject_test.go

    		err := obj.MakeBucket(context.Background(), testCase.bucketName, MakeBucketOptions{})
    		if err != nil {
    			t.Fatalf("%s : %s", instanceType, err.Error())
    		}
    
    		for _, object := range testCase.objectToUploads {
    			md5Bytes := md5.Sum([]byte(object.content))
    			oi, err := obj.PutObject(context.Background(), testCase.bucketName, object.name, mustGetPutObjReader(t, strings.NewReader(object.content),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  6. cmd/crossdomain-xml-handler.go

    // or Adobe Acrobat (though not necessarily limited to these), permission to handle data across domains.
    // When clients request content hosted on a particular source domain and that content make requests
    // directed towards a domain other than its own, the remote domain needs to host a cross-domain
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 18 06:42:40 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  7. cmd/consolelogger.go

    // the console logging pub sub system
    func NewConsoleLogger(ctx context.Context, w io.Writer) *HTTPConsoleLoggerSys {
    	return &HTTPConsoleLoggerSys{
    		pubsub:  pubsub.New[log.Info, madmin.LogMask](8),
    		console: console.New(w),
    		logBuf:  ring.New(defaultLogBufferCount),
    	}
    }
    
    // IsOnline always true in case of console logger
    func (sys *HTTPConsoleLoggerSys) IsOnline(_ context.Context) bool {
    	return true
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  8. cmd/signature-v4-utils.go

    	}
    
    	// Skip if no header was set.
    	if !ok {
    		return true
    	}
    
    	// If x-amz-content-sha256 is set and the value is not
    	// 'UNSIGNED-PAYLOAD' we should validate the content sha256.
    	switch v[0] {
    	case unsignedPayload, unsignedPayloadTrailer:
    		return true
    	case emptySHA256:
    		// some broken clients set empty-sha256
    		// with > 0 content-length in the body,
    		// we should skip such clients and allow
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. lib/time/mkzip.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // Mkzip writes a zoneinfo.zip with the content of the current directory
    // and its subdirectories, with no compression, suitable for package time.
    //
    // Usage:
    //
    //	go run ../../mkzip.go ../../zoneinfo.zip
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. internal/config/identity/openid/providercfg.go

    // claims as part of the normal oauth2 flow, instead rely
    // on service providers making calls to IDP to fetch additional
    // claims available from the UserInfo endpoint
    func (p *providerCfg) UserInfo(ctx context.Context, accessToken string, transport http.RoundTripper) (map[string]interface{}, error) {
    	if p.JWKS.URL == nil || p.JWKS.URL.String() == "" {
    		return nil, errors.New("openid not configured")
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top