Package text reads any text/* content-type
func NewCodec(c io.ReadWriteCloser) codec.Codec
type Codec struct { Conn io.ReadWriteCloser }
func (c *Codec) Close() error
func (c *Codec) ReadBody(b interface{}) error
func (c *Codec) ReadHeader(m *codec.Message, t codec.MessageType) error
func (c *Codec) String() string
func (c *Codec) Write(m *codec.Message, b interface{}) error
type Frame struct { Data []byte }
Frame gives us the ability to define raw data to send over the pipes