Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for roundTrip (0.12 sec)

  1. src/net/http/transport_test.go

    		if test.accept != "" {
    			req.Header.Set("Accept-Encoding", test.accept)
    		}
    		res, err := tr.RoundTrip(req)
    		if err != nil {
    			t.Errorf("%d. RoundTrip: %v", i, err)
    			continue
    		}
    		var body []byte
    		if test.compressed {
    			var r *gzip.Reader
    			r, err = gzip.NewReader(res.Body)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    	if res != nil {
    		defer res.Body.Close()
    	}
    	if mode == http2Mode {
    		// In HTTP/2, the result depends on a race. If the client has received the
    		// server's SETTINGS before RoundTrip starts sending the request, then RoundTrip
    		// will fail with an error. Otherwise, the client should receive a 431 from the
    		// server.
    		if err == nil && res.StatusCode != 431 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top