| 1 | package goproxyscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/ |
| 2 | |
| 3 | import ( |
| 4 | "bufioscip-go gomod github.com/golang/go/src go1.18 bufio/" |
| 5 | "crypto/tlsscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/" |
| 6 | "errorsscip-go gomod github.com/golang/go/src go1.18 errors/" |
| 7 | "ioscip-go gomod github.com/golang/go/src go1.18 io/" |
| 8 | "netscip-go gomod github.com/golang/go/src go1.18 net/" |
| 9 | "net/httpscip-go gomod github.com/golang/go/src go1.18 `net/http`/" |
| 10 | "stringsscip-go gomod github.com/golang/go/src go1.18 strings/" |
| 11 | |
| 12 | "golang.org/x/net/http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/" |
| 13 | ) |
| 14 | |
| 15 | // H2Transport is an implementation of RoundTripper that abstracts an entire |
| 16 | // HTTP/2 session, sending all client frames to the server and responses back |
| 17 | // to the client. |
| 18 | type H2Transportscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport# struct { |
| 19 | ClientReaderscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#ClientReader. ioscip-go gomod github.com/golang/go/src go1.18 io/.Readerscip-go gomod github.com/golang/go/src go1.18 io/Reader# |
| 20 | ClientWriterscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#ClientWriter. ioscip-go gomod github.com/golang/go/src go1.18 io/.Writerscip-go gomod github.com/golang/go/src go1.18 io/Writer# |
| 21 | TLSConfigscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#TLSConfig. *tlsscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/.Configscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/Config# |
| 22 | Hostscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#Host. string |
| 23 | } |
| 24 | |
| 25 | // RoundTrip executes an HTTP/2 session (including all contained streams). |
| 26 | // The request and response are ignored but any error encountered during the |
| 27 | // proxying from the session is returned as a result of the invocation. |
| 28 | func (r *H2Transportscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#) RoundTripscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#RoundTrip().(prefaceReq *httpscip-go gomod github.com/golang/go/src go1.18 `net/http`/.Requestscip-go gomod github.com/golang/go/src go1.18 `net/http`/Request#) (*httpscip-go gomod github.com/golang/go/src go1.18 `net/http`/.Responsescip-go gomod github.com/golang/go/src go1.18 `net/http`/Response#, error) { |
| 29 | raddr := r.Hostscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#Host. |
| 30 | if !stringsscip-go gomod github.com/golang/go/src go1.18 strings/.Containsscip-go gomod github.com/golang/go/src go1.18 strings/Contains().(raddr, ":") { |
| 31 | raddr = raddr + ":443" |
| 32 | } |
| 33 | rawServerTLS, err := dialscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/dial().("tcp", raddr) |
| 34 | if err != nil { |
| 35 | return nil, err |
| 36 | } |
| 37 | defer rawServerTLS.Closescip-go gomod github.com/golang/go/src go1.18 net/Conn#Close().() |
| 38 | // Ensure that we only advertise HTTP/2 as the accepted protocol. |
| 39 | r.TLSConfigscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#TLSConfig..NextProtosscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/Config#NextProtos. = []string{http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.NextProtoTLSscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/NextProtoTLS.} |
| 40 | // Initiate TLS and check remote host name against certificate. |
| 41 | rawServerTLS = tlsscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/.Clientscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/Client().(rawServerTLS, r.TLSConfigscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#TLSConfig.) |
| 42 | if err = rawServerTLS.(*tlsscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/.Connscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/Conn#).Handshakescip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/Conn#Handshake().(); err != nil { |
| 43 | return nil, err |
| 44 | } |
| 45 | if r.TLSConfigscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#TLSConfig. == nil || !r.TLSConfigscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#TLSConfig..InsecureSkipVerifyscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/Config#InsecureSkipVerify. { |
| 46 | if err = rawServerTLS.(*tlsscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/.Connscip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/Conn#).VerifyHostnamescip-go gomod github.com/golang/go/src go1.18 `crypto/tls`/Conn#VerifyHostname().(raddr[:stringsscip-go gomod github.com/golang/go/src go1.18 strings/.LastIndexscip-go gomod github.com/golang/go/src go1.18 strings/LastIndex().(raddr, ":")]); err != nil { |
| 47 | return nil, err |
| 48 | } |
| 49 | } |
| 50 | // Send new client preface to match the one parsed in req. |
| 51 | if _, err := ioscip-go gomod github.com/golang/go/src go1.18 io/.WriteStringscip-go gomod github.com/golang/go/src go1.18 io/WriteString().(rawServerTLS, http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.ClientPrefacescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/ClientPreface.); err != nil { |
| 52 | return nil, err |
| 53 | } |
| 54 | serverTLSReader := bufioscip-go gomod github.com/golang/go/src go1.18 bufio/.NewReaderscip-go gomod github.com/golang/go/src go1.18 bufio/NewReader().(rawServerTLS) |
| 55 | cToS := http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.NewFramerscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/NewFramer().(rawServerTLS, r.ClientReaderscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#ClientReader.) |
| 56 | sToC := http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.NewFramerscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/NewFramer().(r.ClientWriterscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/H2Transport#ClientWriter., serverTLSReader) |
| 57 | errSToC := make(chan error) |
| 58 | errCToS := make(chan error) |
| 59 | go func() { |
| 60 | for { |
| 61 | if err := proxyFramescip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/proxyFrame().(sToC); err != nil { |
| 62 | errSToC <- err |
| 63 | break |
| 64 | } |
| 65 | } |
| 66 | }() |
| 67 | go func() { |
| 68 | for { |
| 69 | if err := proxyFramescip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/proxyFrame().(cToS); err != nil { |
| 70 | errCToS <- err |
| 71 | break |
| 72 | } |
| 73 | } |
| 74 | }() |
| 75 | for i := 0; i < 2; i++ { |
| 76 | select { |
| 77 | case err := <-errSToC: |
| 78 | if err != ioscip-go gomod github.com/golang/go/src go1.18 io/.EOFscip-go gomod github.com/golang/go/src go1.18 io/EOF. { |
| 79 | return nil, err |
| 80 | } |
| 81 | case err := <-errCToS: |
| 82 | if err != ioscip-go gomod github.com/golang/go/src go1.18 io/.EOFscip-go gomod github.com/golang/go/src go1.18 io/EOF. { |
| 83 | return nil, err |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | return nil, nil |
| 88 | } |
| 89 | |
| 90 | func dialscip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/dial().(network, addr string) (c netscip-go gomod github.com/golang/go/src go1.18 net/.Connscip-go gomod github.com/golang/go/src go1.18 net/Conn#, err error) { |
| 91 | addri, err := netscip-go gomod github.com/golang/go/src go1.18 net/.ResolveTCPAddrscip-go gomod github.com/golang/go/src go1.18 net/ResolveTCPAddr().(network, addr) |
| 92 | if err != nil { |
| 93 | return |
| 94 | } |
| 95 | c, err = netscip-go gomod github.com/golang/go/src go1.18 net/.DialTCPscip-go gomod github.com/golang/go/src go1.18 net/DialTCP().(network, nil, addri) |
| 96 | return |
| 97 | } |
| 98 | |
| 99 | // proxyFrame reads a single frame from the Framer and, when successful, writes |
| 100 | // a ~identical one back to the Framer. |
| 101 | func proxyFramescip-go gomod github.com/elazarl/goproxy . `github.com/elazarl/goproxy`/proxyFrame().(fr *http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.Framerscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#) error { |
| 102 | f, err := fr.ReadFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#ReadFrame().() |
| 103 | if err != nil { |
| 104 | return err |
| 105 | } |
| 106 | switch f.Headerscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Frame#Header().().Typescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#Type. { |
| 107 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FrameDatascip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameData.: |
| 108 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.DataFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/DataFrame#) |
| 109 | terr := fr.WriteDatascip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WriteData().(tf.StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#StreamID., tf.StreamEndedscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/DataFrame#StreamEnded().(), tf.Datascip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/DataFrame#Data().()) |
| 110 | if terr == nil && tf.StreamEndedscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/DataFrame#StreamEnded().() { |
| 111 | terr = ioscip-go gomod github.com/golang/go/src go1.18 io/.EOFscip-go gomod github.com/golang/go/src go1.18 io/EOF. |
| 112 | } |
| 113 | return terr |
| 114 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FrameHeadersscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeaders.: |
| 115 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.HeadersFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrame#) |
| 116 | terr := fr.WriteHeadersscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WriteHeaders().(http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.HeadersFrameParamscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrameParam#{ |
| 117 | StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrameParam#StreamID.: tf.StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#StreamID., |
| 118 | BlockFragmentscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrameParam#BlockFragment.: tf.HeaderBlockFragmentscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrame#HeaderBlockFragment().(), |
| 119 | EndStreamscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrameParam#EndStream.: tf.StreamEndedscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrame#StreamEnded().(), |
| 120 | EndHeadersscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrameParam#EndHeaders.: tf.HeadersEndedscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrame#HeadersEnded().(), |
| 121 | PadLengthscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrameParam#PadLength.: 0, |
| 122 | Priorityscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrameParam#Priority.: tf.Priorityscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrame#Priority., |
| 123 | }) |
| 124 | if terr == nil && tf.StreamEndedscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/HeadersFrame#StreamEnded().() { |
| 125 | terr = ioscip-go gomod github.com/golang/go/src go1.18 io/.EOFscip-go gomod github.com/golang/go/src go1.18 io/EOF. |
| 126 | } |
| 127 | return terr |
| 128 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FrameContinuationscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameContinuation.: |
| 129 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.ContinuationFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/ContinuationFrame#) |
| 130 | return fr.WriteContinuationscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WriteContinuation().(tf.StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#StreamID., tf.HeadersEndedscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/ContinuationFrame#HeadersEnded().(), tf.HeaderBlockFragmentscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/ContinuationFrame#HeaderBlockFragment().()) |
| 131 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FrameGoAwayscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameGoAway.: |
| 132 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.GoAwayFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/GoAwayFrame#) |
| 133 | return fr.WriteGoAwayscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WriteGoAway().(tf.StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#StreamID., tf.ErrCodescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/GoAwayFrame#ErrCode., tf.DebugDatascip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/GoAwayFrame#DebugData().()) |
| 134 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FramePingscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FramePing.: |
| 135 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.PingFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PingFrame#) |
| 136 | return fr.WritePingscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WritePing().(tf.IsAckscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PingFrame#IsAck().(), tf.Datascip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PingFrame#Data.) |
| 137 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FrameRSTStreamscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameRSTStream.: |
| 138 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.RSTStreamFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/RSTStreamFrame#) |
| 139 | return fr.WriteRSTStreamscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WriteRSTStream().(tf.StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#StreamID., tf.ErrCodescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/RSTStreamFrame#ErrCode.) |
| 140 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FrameSettingsscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameSettings.: |
| 141 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.SettingsFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/SettingsFrame#) |
| 142 | if tf.IsAckscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/SettingsFrame#IsAck().() { |
| 143 | return fr.WriteSettingsAckscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WriteSettingsAck().() |
| 144 | } |
| 145 | var settings []http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.Settingscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Setting# |
| 146 | // NOTE: If we want to parse headers, need to handle |
| 147 | // settings where s.ID == http2.SettingHeaderTableSize and |
| 148 | // accordingly update the Framer options. |
| 149 | for i := 0; i < tf.NumSettingsscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/SettingsFrame#NumSettings().(); i++ { |
| 150 | settings = append(settings, tf.Settingscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/SettingsFrame#Setting().(i)) |
| 151 | } |
| 152 | return fr.WriteSettingsscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WriteSettings().(settings...) |
| 153 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FrameWindowUpdatescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameWindowUpdate.: |
| 154 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.WindowUpdateFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/WindowUpdateFrame#) |
| 155 | return fr.WriteWindowUpdatescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WriteWindowUpdate().(tf.StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#StreamID., tf.Incrementscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/WindowUpdateFrame#Increment.) |
| 156 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FramePriorityscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FramePriority.: |
| 157 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.PriorityFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PriorityFrame#) |
| 158 | return fr.WritePriorityscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WritePriority().(tf.StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#StreamID., tf.PriorityParamscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PriorityFrame#PriorityParam.) |
| 159 | case http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.FramePushPromisescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FramePushPromise.: |
| 160 | tf := f.(*http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.PushPromiseFramescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseFrame#) |
| 161 | return fr.WritePushPromisescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Framer#WritePushPromise().(http2scip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/.PushPromiseParamscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseParam#{ |
| 162 | StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseParam#StreamID.: tf.StreamIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#StreamID., |
| 163 | PromiseIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseParam#PromiseID.: tf.PromiseIDscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseFrame#PromiseID., |
| 164 | BlockFragmentscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseParam#BlockFragment.: tf.HeaderBlockFragmentscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseFrame#HeaderBlockFragment().(), |
| 165 | EndHeadersscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseParam#EndHeaders.: tf.HeadersEndedscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseFrame#HeadersEnded().(), |
| 166 | PadLengthscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/PushPromiseParam#PadLength.: 0, |
| 167 | }) |
| 168 | default: |
| 169 | return errorsscip-go gomod github.com/golang/go/src go1.18 errors/.Newscip-go gomod github.com/golang/go/src go1.18 errors/New().("Unsupported frame: " + string(f.Headerscip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/Frame#Header().().Typescip-go gomod golang.org/x/net v0.26.0 `golang.org/x/net/http2`/FrameHeader#Type.)) |
| 170 | } |
| 171 | } |