Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for initTestAPIEndPoints (0.1 sec)

  1. cmd/test-utils_test.go

    	if err != nil {
    		// failed to create newbucket, return err.
    		return "", nil, err
    	}
    	// Register the API end points with Erasure object layer.
    	// Registering only the GetObject handler.
    	apiRouter := initTestAPIEndPoints(obj, endpoints)
    	f := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		r.RequestURI = r.URL.RequestURI()
    		apiRouter.ServeHTTP(w, r)
    	})
    	return bucketName, f, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top