Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for parseFrom (0.26 sec)

  1. pilot/pkg/xds/debug.go

    	writeJSON(w, s.Env.EndpointIndex.Shardz(), req)
    }
    
    func (s *DiscoveryServer) cachez(w http.ResponseWriter, req *http.Request) {
    	if err := req.ParseForm(); err != nil {
    		w.WriteHeader(http.StatusBadRequest)
    		_, _ = w.Write([]byte("Failed to parse request\n"))
    		return
    	}
    	if req.Form.Get("clear") != "" {
    		s.Cache.ClearAll()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  2. 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
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  3. src/net/http/serve_test.go

    		x := r.URL.Query().Get("x")
    		if expectParseFormErr {
    			if err := r.ParseForm(); err == nil || !strings.Contains(err.Error(), "semicolon") {
    				t.Errorf("expected error mentioning semicolons from ParseForm, got %v", err)
    			}
    		} else {
    			if err := r.ParseForm(); err != nil {
    				t.Errorf("expected no error from ParseForm, got %v", err)
    			}
    		}
    		if got := r.FormValue("x"); x != got {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  4. src/net/http/client_test.go

    		nonce        string // a unique per-request string
    		sawSlowNonce bool   // true if the handler saw /slow?nonce=<nonce>
    	)
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		_ = r.ParseForm()
    		if r.URL.Path == "/" {
    			Redirect(w, r, "/slow?nonce="+r.Form.Get("nonce"), StatusFound)
    			return
    		}
    		if r.URL.Path == "/slow" {
    			mu.Lock()
    			if r.Form.Get("nonce") == nonce {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  5. 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 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  6. src/net/http/server.go

    // behavior doesn't match that of many proxies, and the mismatch can lead to
    // security issues.
    //
    // AllowQuerySemicolons should be invoked before [Request.ParseForm] is called.
    func AllowQuerySemicolons(h Handler) Handler {
    	return HandlerFunc(func(w ResponseWriter, r *Request) {
    		if strings.Contains(r.URL.RawQuery, ";") {
    			r2 := new(Request)
    			*r2 = *r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top