Lines Matching refs:contentType
153 BMessage contentType;
154 HeaderField("Content-Type", &contentType);
156 const char *fileName = contentType.FindString("name");
158 fileName = contentType.FindString("filename");
160 contentType.MakeEmpty();
161 HeaderField("Content-Disposition", &contentType);
162 fileName = contentType.FindString("name");
165 fileName = contentType.FindString("filename");
167 contentType.MakeEmpty();
168 HeaderField("Content-Location", &contentType);
169 fileName = contentType.FindString("unlabeled");
182 BMessage contentType;
183 HeaderField("Content-Type", &contentType);
185 if (contentType.ReplaceString("name", name) != B_OK)
186 contentType.AddString("name", name);
190 if (contentType.ReplaceInt32(kHeaderCharsetString, B_MAIL_UTF8_CONVERSION)
192 contentType.AddInt32(kHeaderCharsetString, B_MAIL_UTF8_CONVERSION);
194 SetHeaderField ("Content-Type", &contentType);