Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Got1xxResponse (0.09 sec)

  1. src/net/http/httputil/reverseproxy_test.go

    		t.Errorf("got response %q, want %q", got, want)
    	}
    }
    
    func Test1xxHeadersNotModifiedAfterRoundTrip(t *testing.T) {
    	// https://go.dev/issue/65123: We use httptrace.Got1xxResponse to capture 1xx responses
    	// and proxy them. httptrace handlers can execute after RoundTrip returns, in particular
    	// after experiencing connection errors. When this happens, we shouldn't modify the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  2. src/net/http/transport.go

    				return nil, errors.New("net/http: too many 1xx informational responses")
    			}
    			pc.readLimit = pc.maxHeaderResponseSize() // reset the limit
    			if trace != nil && trace.Got1xxResponse != nil {
    				if err := trace.Got1xxResponse(resCode, textproto.MIMEHeader(resp.Header)); err != nil {
    					return nil, err
    				}
    			}
    			continue
    		}
    		break
    	}
    	if resp.isProtocolSwitch() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top