Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ParseForm (0.22 sec)

  1. cmd/signature-v4-utils_test.go

    			}
    			inputReq.URL.RawQuery = q.Encode()
    		} else if testCase.inputHeaderKey != "" {
    			inputReq.Header.Set(testCase.inputHeaderKey, testCase.inputHeaderValue)
    		}
    		inputReq.ParseForm()
    
    		actualResult := skipContentSha256Cksum(inputReq)
    		if testCase.expectedResult != actualResult {
    			t.Errorf("Test %d: Expected the result to `%v`, but instead got `%v`", i+1, testCase.expectedResult, actualResult)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  2. cmd/sts-handlers.go

    	// Session tokens are not allowed in STS AssumeRole requests.
    	if getSessionToken(r) != "" {
    		return auth.Credentials{}, ErrAccessDenied
    	}
    
    	return user, ErrNone
    }
    
    func parseForm(r *http.Request) error {
    	if err := r.ParseForm(); err != nil {
    		return err
    	}
    	for k, v := range r.PostForm {
    		if _, ok := r.Form[k]; !ok {
    			r.Form[k] = v
    		}
    	}
    	return nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  3. cmd/url_test.go

    	// benchmark utility which helps obtain number of allocations and bytes allocated per ops.
    	b.ReportAllocs()
    	// the actual benchmark for PutObject starts here. Reset the benchmark timer.
    	b.ResetTimer()
    
    	if err := req.ParseForm(); err != nil {
    		b.Fatal(err)
    	}
    
    	b.RunParallel(func(pb *testing.PB) {
    		for pb.Next() {
    			req.Form.Get("uploadId")
    		}
    	})
    
    	// Benchmark ends here. Stop timer.
    	b.StopTimer()
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 2K bytes
    - Viewed (0)
  4. cmd/auth-handler_test.go

    			t.Fatalf("Error initializing input HTTP request: %v", err)
    		}
    		q := inputReq.URL.Query()
    		q.Add(testCase.inputQueryKey, testCase.inputQueryValue)
    		inputReq.URL.RawQuery = q.Encode()
    		inputReq.ParseForm()
    
    		actualResult := isRequestPresignedSignatureV2(inputReq)
    		if testCase.expectedResult != actualResult {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  5. docs/sts/web-identity.go

    		}
    	})
    
    	http.HandleFunc("/oauth2/callback", func(w http.ResponseWriter, r *http.Request) {
    		log.Printf("%s %s", r.Method, r.RequestURI)
    
    		if err := r.ParseForm(); err != nil {
    			http.Error(w, err.Error(), http.StatusBadRequest)
    			return
    		}
    		if r.Form.Get("state") != state {
    			http.Error(w, "state did not match", http.StatusBadRequest)
    			return
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri May 19 09:13:33 GMT 2023
    - 7.8K bytes
    - Viewed (3)
  6. cmd/signature-v4_test.go

    		}
    
    		// 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)
    		if err != testCase.expected {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  7. cmd/storage-rest-server.go

    func (s *storageRESTServer) IsValid(w http.ResponseWriter, r *http.Request) bool {
    	if !s.IsAuthValid(w, r) {
    		return false
    	}
    
    	if err := r.ParseForm(); err != nil {
    		s.writeErrorResponse(w, err)
    		return false
    	}
    
    	diskID := r.Form.Get(storageRESTDiskID)
    	if diskID == "" {
    		// Request sent empty disk-id, we allow the request
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	}
    
    	objLayer := newObjectLayerFn()
    	o, ok := objLayer.(getRawDataer)
    	if !ok {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    
    	if err := parseForm(r); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	volume := r.Form.Get("volume")
    	if len(volume) == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  9. api/go1.txt

    pkg net/http, method (*Request) FormValue(string) string
    pkg net/http, method (*Request) MultipartReader() (*multipart.Reader, error)
    pkg net/http, method (*Request) ParseForm() error
    pkg net/http, method (*Request) ParseMultipartForm(int64) error
    pkg net/http, method (*Request) ProtoAtLeast(int, int) bool
    pkg net/http, method (*Request) Referer() string
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
Back to top