Lines Matching refs:framer
773 // Most users should use Framer.ReadFrame instead.
798 // Frames are only valid until the next call to Framer.ReadFrame.
802 // invalidate is called by Framer.ReadFrame to make this
808 // A Framer reads and writes Frames.
832 // AllowIllegalWrites permits the Framer's Write methods to
834 // permits using the Framer to test other HTTP/2
840 // AllowIllegalReads permits the Framer's ReadFrame method
842 // This is for testing and permits using the Framer to test
919 f.debugWriteLoggerf("http2: Framer %p: failed to decode just-written frame", f)
922 f.debugWriteLoggerf("http2: Framer %p: wrote %v", f, http2summarizeFrame(fr))
940 // NewFramer returns a Framer that writes frames to w and reads them from r.
973 // returned by Framer.ReadFrame. For instance, if ReadFrame
983 // ErrFrameTooLarge is returned from Framer.ReadFrame when the peer
1030 fr.debugReadLoggerf("http2: Framer %p: read %v", fr, http2summarizeFrame(f))
1356 // Framer.ReadFrame, nor is it valid to retain the returned slice.
1357 // The memory is owned by the Framer and is invalidated when the next
1820 // by the Framer when Framer.ReadMetaHeaders is set.
1826 // Framer and must not be retained after the next call to
3162 sc.framer = fr
3193 sc.framer.WriteGoAway(0, err, []byte(debug))
3206 framer *http2Framer
3306 func (sc *http2serverConn) Framer() *http2Framer { return sc.framer }
3443 f, err := sc.framer.ReadFrame()
7395 Framer() *http2Framer
7436 return ctx.Framer().WriteSettings([]http2Setting(s)...)
7445 err := ctx.Framer().WriteGoAway(p.maxStreamID, p.code, nil)
7467 return ctx.Framer().WriteData(w.streamID, w.endStream, w.p)
7481 return ctx.Framer().WriteRSTStream(hp.StreamID, http2ErrCodeInternal)
7487 return ctx.Framer().WriteRSTStream(se.StreamID, se.Code)
7495 return ctx.Framer().WritePing(true, w.pf.Data)
7505 return ctx.Framer().WriteSettingsAck()
7593 return ctx.Framer().WriteHeaders(http2HeadersFrameParam{
7600 return ctx.Framer().WriteContinuation(w.streamID, lastFrag, frag)
7642 return ctx.Framer().WritePushPromise(http2PushPromiseParam{
7649 return ctx.Framer().WriteContinuation(w.streamID, lastFrag, frag)
7661 return ctx.Framer().WriteHeaders(http2HeadersFrameParam{
7682 return ctx.Framer().WriteWindowUpdate(wu.streamID, wu.n)