Base class for all SIP body types.
Thrown when there is an error parsing a multi-part mixed contents envelope.
Exception(const Data &msg, const Data &file, const int line)
const char * name() const noexcept override
SIP body type for holding Multipart-Mixed body contents (MIME content-type multipart/mixed).
static constexpr unsigned int MaxNestingDepth
parse() fails (Exception) a body nested more than this many multipart levels below the outermost one.
Data getRawFirstPart() const
The first body part exactly as it arrived: header block, the empty line, and the body.
virtual Contents * clone() const
duplicate an MultipartMixedContents object
virtual void parse(ParseBuffer &pb)
static const Mime & getStaticType()
virtual EncodeStream & encodeParsed(EncodeStream &str) const
std::vector< Contents * > Parts
const Parts & parts() const
virtual ~MultipartMixedContents()
MultipartMixedContents & operator=(const MultipartMixedContents &rhs)