Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 11 of 11 for bodySize (0.09 sec)

  1. src/net/http/transport_test.go

    			io.Copy(io.Discard, conn)
    			copying.Done()
    		}()
    	})).ts
    	c := ts.Client()
    
    	const bodySize = 256 << 10
    	finalBit := make(byteFromChanReader, 1)
    	req, _ := NewRequest("POST", ts.URL, io.MultiReader(io.LimitReader(neverEnding('x'), bodySize-1), finalBit))
    	req.ContentLength = bodySize
    	res, err := c.Do(req)
    	if err := wantBody(res, err, "foo"); err != nil {
    		t.Errorf("POST response: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top