Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 193 for url (0.2 sec)

  1. cmd/url_test.go

    	}
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			req.Form.Get("uploadId")
    		}
    	})
    
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    // BenchmarkURLQuery - benchmark URL memory allocations
    func BenchmarkURLQuery(b *testing.B) {
    	req, err := http.NewRequest(http.MethodGet, "http://localhost:9000/bucket/name?uploadId=upload&partNumber=1", http.NoBody)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 2K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	data, err := json.Marshal(allCredentials)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	econfigData, err := madmin.EncryptData(password, data)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 15:15:02 GMT 2024
    - 76K bytes
    - Viewed (0)
  3. internal/handlers/forwarder.go

    func copyURL(i *url.URL) *url.URL {
    	out := *i
    	if i.User != nil {
    		u := *i.User
    		out.User = &u
    	}
    	return &out
    }
    
    // Modify the request to handle the target URL
    func (f *Forwarder) modifyRequest(outReq *http.Request, target *url.URL) {
    	outReq.URL = copyURL(outReq.URL)
    	outReq.URL.Scheme = target.Scheme
    	outReq.URL.Host = target.Host
    
    	u := f.getURLFromRequest(outReq)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 07 05:42:10 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  4. cmd/admin-handlers-idp-ldap.go

    		return
    	}
    
    	var par madmin.PolicyAssociationReq
    	err = json.Unmarshal(reqBytes, &par)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    		return
    	}
    
    	if err := par.IsValid(); err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), r.URL)
    		return
    	}
    
    	// Call IAM subsystem
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Apr 06 05:26:02 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. cmd/admin-handlers-site-replication.go

    		return
    	}
    	status, err := globalSiteReplicationSys.RemovePeerCluster(ctx, objectAPI, rreq)
    	if err != nil {
    		adminLogIf(ctx, err)
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	body, err := json.Marshal(status)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 09:40:39 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  6. cmd/bucket-notification-handlers.go

    		return
    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.GetBucketNotificationAction, bucketName, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	_, err := objAPI.GetBucketInfo(ctx, bucketName, BucketOptions{})
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/healthServer_test.go

    	defer server.Close()
    
    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    	makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusServiceUnavailable)
    
    	installReady.Store(true)
    	watchReady.Store(true)
    	assert.Equal(t, installReady.Load(), true)
    	assert.Equal(t, watchReady.Load(), true)
    
    	makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK)
    	makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusOK)
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. istioctl/pkg/multixds/google.go

    // limitations under the License.
    
    package multixds
    
    import (
    	"fmt"
    	"net/url"
    	"strings"
    )
    
    func isMCPAddr(u *url.URL) bool {
    	return strings.HasSuffix(u.Host, ".googleapis.com") || strings.HasSuffix(u.Host, ".googleapis.com:443")
    }
    
    func parseMCPAddr(u *url.URL) (*xdsAddr, error) {
    	ret := &xdsAddr{host: u.Host}
    	if !strings.HasSuffix(ret.host, ":443") {
    		ret.host += ":443"
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Jun 06 03:39:27 GMT 2022
    - 1.5K bytes
    - Viewed (1)
  9. cmd/admin-handlers-idp-config.go

    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	dynamic, err := cfg.ReadConfig(strings.NewReader(cfgData))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// IDP config is not dynamic. Sanity check.
    	if dynamic {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), "", r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. cmd/generic-handlers.go

    	return (aType == authTypeAnonymous || aType == authTypeJWT) &&
    		req.URL.Path == minioReservedBucketPath+prometheusMetricsPathLegacy ||
    		req.URL.Path == minioReservedBucketPath+prometheusMetricsV2ClusterPath ||
    		req.URL.Path == minioReservedBucketPath+prometheusMetricsV2NodePath ||
    		req.URL.Path == minioReservedBucketPath+prometheusMetricsV2BucketPath ||
    		req.URL.Path == minioReservedBucketPath+prometheusMetricsV2ResourcePath ||
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top