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