Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for FormData (0.05 seconds)

  1. cmd/post-policy_test.go

    		"Content-Encoding": "gzip",
    	}
    
    	// Add form data
    	maps.Copy(formData, addFormData)
    
    	// Create the multipart form.
    	var buf bytes.Buffer
    	w := multipart.NewWriter(&buf)
    
    	// Set the normal formData
    	for k, v := range formData {
    		w.WriteField(k, v)
    	}
    	// Set the File formData but don't if we want send an incomplete multipart request
    	if !corruptedMultipart {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 30.6K bytes
    - Click Count (0)
  2. fastapi/dependencies/utils.py

            single_not_embedded_field
            and lenient_issubclass(first_field.field_info.annotation, BaseModel)
            and isinstance(received_body, FormData)
        ):
            fields_to_extract = get_cached_model_fields(first_field.field_info.annotation)
    
        if isinstance(received_body, FormData):
            body_to_process = await _extract_form_body(fields_to_extract, received_body)
    
        if single_not_embedded_field:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 38.7K bytes
    - Click Count (3)
  3. cmd/utils.go

    	// }
    
    	// Fill the login form with our test creds:
    	// fmt.Printf("login form url: %s\n", lastReq.URL.String())
    	formData := url.Values{}
    	formData.Set("login", username)
    	formData.Set("password", password)
    	req, err = http.NewRequestWithContext(ctx, http.MethodPost, lastReq.URL.String(), strings.NewReader(formData.Encode()))
    	if err != nil {
    		return "", fmt.Errorf("new request err (/login): %v", err)
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 33K bytes
    - Click Count (0)
Back to Top