Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for reqBytes (0.2 sec)

  1. src/net/http/readrequest_test.go

    	{"smuggle_two_contentlen", reqBytes(`POST / HTTP/1.1
    Content-Length: 3
    Content-Length: 4
    
    abc`)},
    	{"smuggle_two_content_len_head", reqBytes(`HEAD / HTTP/1.1
    Host: foo
    Content-Length: 4
    Content-Length: 5
    
    1234`)},
    
    	// golang.org/issue/22464
    	{"leading_space_in_header", reqBytes(`GET / HTTP/1.1
     Host: foo`)},
    	{"leading_tab_in_header", reqBytes(`GET / HTTP/1.1
    ` + "\t" + `Host: foo`)},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 22:23:32 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. internal/config/identity/openid/providercfg.go

    	if err != nil {
    		return nil, err
    	}
    
    	defer xhttp.DrainBody(resp.Body)
    	if resp.StatusCode != http.StatusOK {
    		// uncomment this for debugging when needed.
    		// reqBytes, _ := httputil.DumpRequest(req, false)
    		// fmt.Println(string(reqBytes))
    		// respBytes, _ := httputil.DumpResponse(resp, true)
    		// fmt.Println(string(respBytes))
    		return nil, errors.New(resp.Status)
    	}
    
    	claims := map[string]interface{}{}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. cmd/tier-handlers.go

    		return
    	}
    
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    
    	var cfg madmin.TierConfig
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err := json.Unmarshal(reqBytes, &cfg); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. cmd/admin-handlers-idp-ldap.go

    	// Validate API arguments in body.
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		adminLogIf(ctx, err)
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), r.URL)
    		return
    	}
    
    	var par madmin.PolicyAssociationReq
    	err = json.Unmarshal(reqBytes, &par)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 19:58:48 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. cmd/admin-handlers-idp-config.go

    	contentType := r.Header.Get("Content-Type")
    	if contentType != "application/octet-stream" {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrBadRequest), r.URL)
    		return
    	}
    
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		adminLogIf(ctx, err)
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminConfigBadJSON), r.URL)
    		return
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. cmd/admin-handlers-users.go

    		return
    	}
    
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    
    	var updateReq madmin.UpdateServiceAccountReq
    	if err = json.Unmarshal(reqBytes, &updateReq); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:19:04 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  7. src/net/http/serve_test.go

    }
    
    func (c *testConn) Close() error {
    	select {
    	case c.closec <- true:
    	default:
    	}
    	return nil
    }
    
    // reqBytes treats req as a request (with \n delimiters) and returns it with \r\n delimiters,
    // ending in \r\n\r\n
    func reqBytes(req string) []byte {
    	return []byte(strings.ReplaceAll(strings.TrimSpace(req), "\n", "\r\n") + "\r\n\r\n")
    }
    
    type handlerTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  8. cmd/admin-bucket-handlers.go

    		return
    	}
    	password := cred.SecretKey
    
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    	var target madmin.BucketTarget
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	if err = json.Unmarshal(reqBytes, &target); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. docs/fr/docs/features.md

    * Documentation automatique des modèles de données avec <a href="http://json-schema.org/" class="external-link" target="_blank"><strong>JSON Schema</strong></a> (comme OpenAPI est aussi basée sur JSON Schema).
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. docs/fr/docs/index.md

    * Valider que `item_id` existe dans le chemin des requêtes `GET` et `PUT`.
    * Valider que `item_id` est de type `int` pour les requêtes `GET` et `PUT`.
        * Si ce n'est pas le cas, le client voit une erreur utile et claire.
    * Vérifier qu'il existe un paramètre de requête facultatif nommé `q` (comme dans `http://127.0.0.1:8000/items/foo?q=somequery`) pour les requêtes `GET`.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Apr 29 05:18:04 UTC 2024
    - 22K bytes
    - Viewed (0)
Back to top