func (h FrameHeader) Bytes() []byte {
	return h[:]
}
Bytes returns raw frame header bytes.
package core
import (
	"encoding/binary"
	"io"
	"strconv"
	"strings"
)
const (
	FrameHeaderLen = 6
)
type FrameHeader [FrameHeaderLen]byte
func (h FrameHeader) String() string {
	bu := strings.Builder{}
	bu.WriteString("FrameHeader{id=")
	bu.WriteString(strconv.FormatUint(uint64(h.StreamID()), 10))
	bu.WriteString(",type=")
	bu.WriteString(h.Type().String())
	bu.WriteString(",flag=")
	bu.WriteString(h.Flag().String())
	bu.WriteByte('}')
	return bu.String()
}
func (h FrameHeader) Resumable() bool {
	switch h.Type() {
	case FrameTypeRequestChannel, FrameTypeRequestStream, FrameTypeRequestResponse, FrameTypeRequestFNF, FrameTypeRequestN, FrameTypeCancel, FrameTypeError, FrameTypePayload:
		return true
	default:
		return false
	}
}
func (h FrameHeader) WriteTo(w io.Writer) (int64, error) {
	n, err := w.Write(h[:])
	return int64(n), err
}
func (h FrameHeader) StreamID() uint32 {
	return binary.BigEndian.Uint32(h[:4])
}
func (h FrameHeader) Type() FrameType {
	return FrameType((h.n() & 0xFC00) >> 10)
}
func (h FrameHeader) Flag() FrameFlag {
	return FrameFlag(h.n() & 0x03FF)
}