def pack(self):
self.headers.setdefault('<STR_LIT>', len(self.body))<EOL>headerparts = ("<STR_LIT>".format(key, value)<EOL>for key, value in self.headers.items())<EOL>return six.b("<STR_LIT>".format(self.cmd, "<STR_LIT>".join(headerparts))) + (self.body if isinstance(self.body, six.binary_type) else six.b(self.body)) + six.b('<STR_LIT:\x00>')<EOL>
Create a string representation from object state.

@return: The string (bytes) for this stomp frame.
@rtype: C{str}