Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 66 of 66 for parseFrom (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Request).Cookie", Method, 0},
    		{"(*Request).Cookies", Method, 0},
    		{"(*Request).FormFile", Method, 0},
    		{"(*Request).FormValue", Method, 0},
    		{"(*Request).MultipartReader", Method, 0},
    		{"(*Request).ParseForm", Method, 0},
    		{"(*Request).ParseMultipartForm", Method, 0},
    		{"(*Request).PathValue", Method, 22},
    		{"(*Request).PostFormValue", Method, 1},
    		{"(*Request).ProtoAtLeast", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top