writeData writes a DATA frame. It will perform exactly one Write to the underlying Writer. It is the caller's responsibility not to violate the maximum frame size and to not call other Write methods concurrently.
(streamID uint32, endStream bool, data []byte)
| 707 | // It is the caller's responsibility not to violate the maximum frame size |
| 708 | // and to not call other Write methods concurrently. |
| 709 | func (h2f *Framer) WriteData(streamID uint32, endStream bool, data []byte) error { |
| 710 | return h2f.WriteDataPadded(streamID, endStream, data, nil) |
| 711 | } |
| 712 | |
| 713 | // WriteDataPadded writes a DATA frame with optional padding. |
| 714 | // |