Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MaxBytesError (0.19 sec)

  1. api/go1.19.txt

    pkg html/template, method (*Template) Funcs(template.FuncMap) *Template #46121
    pkg html/template, type FuncMap = template.FuncMap #46121
    pkg net/http, method (*MaxBytesError) Error() string #30715
    pkg net/http, type MaxBytesError struct #30715
    pkg net/http, type MaxBytesError struct, Limit int64 #30715
    pkg net/url, func JoinPath(string, ...string) (string, error) #47005
    pkg net/url, method (*URL) JoinPath(...string) *URL #47005
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  2. src/net/http/request.go

    	if n < 0 { // Treat negative limits as equivalent to 0.
    		n = 0
    	}
    	return &maxBytesReader{w: w, r: r, i: n, n: n}
    }
    
    // MaxBytesError is returned by [MaxBytesReader] when its read limit is exceeded.
    type MaxBytesError struct {
    	Limit int64
    }
    
    func (e *MaxBytesError) Error() string {
    	// Due to Hyrum's law, this text cannot be changed.
    	return "http: request body too large"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  3. src/net/http/serve_test.go

    			t.Errorf("expected error from io.Copy")
    		}
    		if n != limit {
    			t.Errorf("io.Copy = %d, want %d", n, limit)
    		}
    		mbErr, ok := err.(*MaxBytesError)
    		if !ok {
    			t.Errorf("expected MaxBytesError, got %T", err)
    		}
    		if mbErr.Limit != limit {
    			t.Errorf("MaxBytesError.Limit = %d, want %d", mbErr.Limit, limit)
    		}
    	}))
    
    	body := &bodyLimitReader{
    		closed: make(chan struct{}),
    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/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Head", Func, 0},
    		{"Header", Type, 0},
    		{"Hijacker", Type, 0},
    		{"ListenAndServe", Func, 0},
    		{"ListenAndServeTLS", Func, 0},
    		{"LocalAddrContextKey", Var, 7},
    		{"MaxBytesError", Type, 19},
    		{"MaxBytesError.Limit", Field, 19},
    		{"MaxBytesHandler", Func, 18},
    		{"MaxBytesReader", Func, 0},
    		{"MethodConnect", Const, 6},
    		{"MethodDelete", Const, 6},
    		{"MethodGet", Const, 6},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top