Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pedanticReadAll (0.12 sec)

  1. src/net/http/client_test.go

    	w.Header().Set("Last-Modified", "sometime")
    	fmt.Fprintf(w, "User-agent: go\nDisallow: /something/")
    })
    
    // pedanticReadAll works like io.ReadAll but additionally
    // verifies that r obeys the documented io.Reader contract.
    func pedanticReadAll(r io.Reader) (b []byte, err error) {
    	var bufa [64]byte
    	buf := bufa[:]
    	for {
    		n, err := r.Read(buf)
    		if n == 0 && err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top