Searched refs:mimetype (Results 1 – 15 of 15) sorted by relevance
158 return [mimetype for mimetype in desired159 if quality_parsed(mimetype, parsed_ranges)]
854 (result, mimetype) = self._compose(**kwargs)860 mimetype = CONTENT_TYPE(collection)861 if filename and (not mimetype or CONTENT_TYPE.UNKNOWN == mimetype):862 mimetype, _ = mimetypes.guess_type(filename)863 if mimetype and CONTENT_TYPE.UNKNOWN != mimetype:864 CONTENT_TYPE.update(collection, mimetype)866 return mimetype
307 def __init__(self, content=b'', mimetype=None, code=200): argument317 if not mimetype:318 mimetype = defaults.get('content_type', 'text/html')321 mimetype = '%s; charset=%s' % (mimetype, charset)323 self.headers['Content-Type'] = mimetype
715 mimetype = mimetypes.guess_type(filename)[0]716 if not mimetype:718 return mimetype.startswith("image/")910 mimetype = RunShell(["svn", "propget", "svn:mime-type", filename],913 is_binary = mimetype and not mimetype.startswith("text/")927 mimetype, returncode = RunShellWithReturnCode(cmd)931 mimetype = ""933 is_binary = mimetype and not mimetype.startswith("text/")
977 … String mimetype=(content.getContentType()==null?null:content.getContentType().toString()); in sendData() local978 if (mimetype==null) in sendData()1006 (mimetype==null?0:HttpHeaders.CONTENT_TYPE.length()+2+mimetype.length())+2+ in sendData()1017 multi.startPart(mimetype,new String[]{HttpHeaders.CONTENT_RANGE+": "+header[i]}); in sendData()
63 … mimetype CommonRequestDescriptorMixin
546 …SResource *res, const char *container, const char *restype, const char *mimetype, const char *id, … in printContainer() argument569 if (mimetype != NULL) { in printContainer()570 printAttribute("mime-type", mimetype, (int32_t) uprv_strlen(mimetype)); in printContainer()
101 response = WSGIResponse(mimetype='text/html; charset=UTF-8')
84 * application/ogg mimetype is now official
3319 mimetype = mimetypes.guess_type(filename)[0]3320 if not mimetype:3322 return mimetype.startswith("image/")3326 mimetype = mimetypes.guess_type(filename)[0]3327 if not mimetype:3330 if mimetype in TEXT_MIMETYPES:3332 return not mimetype.startswith("text/")
154 ``mimetype`` argument is ``content_type``, and ``content_type`` is390 mimetype:
META-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
307 + 397112 Requests with byte-range throws NPE if requested file has no mimetype352 + 397112 Requests with byte-range throws NPE if requested file has no mimetype