74// Hook points used for testing.
75// Outside of tests, t.transportTestHooks is nil and these all have minimal implementations.
76▶// Inside tests, see the testSyncHooks function docs.
77
78type transportTestHooks struct {
· · ·
79▶ newclientconn func(*ClientConn)
80}
81
· · ·
82▶func (t *Transport) maxHeaderListSize() uint32 {
83 n := t.t1.MaxHeaderListSize()
84 if b := t.t1.MaxResponseHeaderBytes(); b != 0 {
· · ·
97}
98
99▶func (t *Transport) disableCompression() bool {
100 return t.t1 != nil && t.t1.DisableCompression()
101}
· · ·
102
103▶func NewTransport(t1 TransportConfig) *Transport {
104 connPool := new(clientConnPool)
105 t2 := &Transport{
+ 189 more matches in this file