class_docstr: A framed protocol with headers and payload transforms.
  
  THeaderProtocol frames other Thrift protocols and adds support for optional
  out-of-band headers. The currently supported subprotocols are
  TBinaryProtocol and TCompactProtocol. When used as a client, the
  subprotocol to frame can be chosen with the `default_protocol` parameter to
  the constructor.
  
  It's also possible to apply transforms to the encoded message payload. The
  only transform currently supported is to gzip.
  
  When used in a server, THeaderProtocol can accept messages from
  non-THeaderProtocol clients if allowed (see `allowed_client_types`). This
  includes framed and unframed transports and both TBinaryProtocol and
  TCompactProtocol. The server will respond in the appropriate dialect for
  the connected client. HTTP clients are not currently supported.
  
  THeaderProtocol does not currently support THTTPServer, TNonblockingServer,
  or TProcessPoolServer.
  
  See doc/specs/HeaderFormat.md for details of the wire format.
class_docstr_tok: ["A","framed","protocol","with","headers","and","payload","transforms",".","THeaderProtocol","frames","other","Thrift","protocols","and","adds","support","for","optional","out-of-band","headers",".","The","currently","supported","subprotocols","are","TBinaryProtocol","and","TCompactProtocol",".","When","used","as","a","client",",","the","subprotocol","to","frame","can","be","chosen","with","the","`","default_protocol","`","parameter","to","the","constructor",".","It","'s","also","possible","to","apply","transforms","to","the","encoded","message","payload",".","The","only","transform","currently","supported","is","to","gzip",".","When","used","in","a","server",",","THeaderProtocol","can","accept","messages","from","non-THeaderProtocol","clients","if","allowed","(","see","`","allowed_client_types","`",")",".","This","includes","framed","and","unframed","transports","and","both","TBinaryProtocol","and","TCompactProtocol",".","The","server","will","respond","in","the","appropriate","dialect","for","the","connected","client",".","HTTP","clients","are","not","currently","supported",".","THeaderProtocol","does","not","currently","support","THTTPServer",",","TNonblockingServer",",","or","TProcessPoolServer",".","See","doc\/specs\/HeaderFormat.md","for","details","of","the","wire","format","."]
code: def writeMessageBegin(self, name, ttype, seqid):
      self.trans.sequence_id = seqid
      return self._protocol.writeMessageBegin(name, ttype, seqid)
  
imports: from thrift.protocol.TBinaryProtocol import TBinaryProtocolAccelerated
  from thrift.protocol.TCompactProtocol import TCompactProtocolAccelerated
  from thrift.protocol.TProtocol import TProtocolBase, TProtocolException, TProtocolFactory
  from thrift.Thrift import TApplicationException, TMessageType
  from thrift.transport.THeaderTransport import THeaderTransport, THeaderSubprotocolID, THeaderClientType
label_desc: Use image node_id 6 for calling the THeaderProtocol obj's underlying member method code with example usage: obj.writeMessageBegin(name, ttype, seqid) and returns: self