code: function Frame(values) {
    this.values = values || {};
    this.rawVersion = values.rawVersion;
    this.isRequest = (this.rawVersion & 0x80) === 0;
    this.version = this.rawVersion & 0x7F;
    this.flags = values.flags || 0;
    this.streamId = values.streamId || 0;
    this.opcode = values.opcode;
    this.isTracing = this.flags & 0x02;
  
    if (this.values.body instanceof Buffer) {
      this.body = this.values.body;
    } else if (typeof this.values.bodyLength === 'number') {
      this.body = new Buffer(this.values.bodyLength);
    }
  }
docs: Frame
  
  @constructor