Lines Matching refs:contentType
131 bool parseContentType(const String& contentType, ReceiverType& receiver)
134 unsigned contentTypeLength = contentType.length();
135 skipSpaces(contentType, index);
137 WTF_LOG_ERROR("Invalid Content-Type string '%s'", contentType.ascii().data());
142 size_t semiColonIndex = contentType.find(';', index);
151 skipSpaces(contentType, index);
152 SubstringRange keyRange = parseParameterPart(contentType, index);
159 if (contentType[index++] != '=' || index >= contentTypeLength) {
165 SubstringRange valueRange = parseParameterPart(contentType, index);
168 WTF_LOG_ERROR("Invalid Content-Type, invalid parameter value (at %i, for '%s').", index, substringForRange(contentType, keyRange).stripWhiteSpace().ascii().data());
173 if (index < contentTypeLength && contentType[index++] != ';') {
187 bool isValidContentType(const String& contentType)
189 if (contentType.contains('\r') || contentType.contains('\n'))
193 return parseContentType<DummyParsedContentType>(contentType, parsedContentType);
196 ParsedContentType::ParsedContentType(const String& contentType)
197 : m_contentType(contentType.stripWhiteSpace())