EncodeChunk reads (decompressed) response message from the msg io.Reader, and writes it as a chunk with given result code to the output writer. The compression is optional and may be nil.
(result ResponseCode, r io.Reader, w io.Writer, comp Compression)
| 106 | // EncodeChunk reads (decompressed) response message from the msg io.Reader, |
| 107 | // and writes it as a chunk with given result code to the output writer. The compression is optional and may be nil. |
| 108 | func EncodeChunk(result ResponseCode, r io.Reader, w io.Writer, comp Compression) error { |
| 109 | if err := EncodeResult(result, w); err != nil { |
| 110 | return err |
| 111 | } |
| 112 | return EncodeHeaderAndPayload(r, w, comp) |
| 113 | } |
| 114 | |
| 115 | // StreamChunk reads (decompressed) response message from the msg io.Reader, |
| 116 | // and writes it as a chunk with given result code to the output writer. The compression is optional and may be nil. |
nothing calls this directly
no test coverage detected