18class ContentType:
public FieldValue
21 static const char label[];
25 operator const std::string&()
const;
27 std::string m_boundary;
28 static std::string ms_common_boundary;
32 typedef FieldParamList ParamList;
35 ContentType(
const char*);
36 ContentType(
const std::string&);
37 ContentType(
const std::string&,
const std::string&);
39 void set(
const std::string&);
40 void set(
const std::string&,
const std::string&);
42 bool isMultipart()
const;
44 const istring& type()
const;
45 void type(
const std::string&);
47 void subtype(
const std::string&);
48 const istring& subtype()
const;
50 const ParamList& paramList()
const;
51 ParamList& paramList();
53 const std::string& param(
const std::string&)
const;
54 void param(
const std::string&,
const std::string&);
56 std::string str()
const;
58 FieldValue* clone()
const;
60 istring m_type, m_subtype;
61 ParamList m_paramList;