code: func WriteFrame(w io.Writer, f Frame) error {
  	err := WriteHeader(w, f.Header)
  	if err != nil {
  		return err
  	}
  	_, err = w.Write(f.Payload)
  	return err
  }
docs: // WriteFrame writes frame binary representation into w.