Home
last modified time | relevance | path

Searched refs:mimetype (Results 1 – 25 of 33) sorted by relevance

12

/external/chromium-trace/catapult/third_party/Paste/paste/util/
Dmimeparse.py158 return [mimetype for mimetype in desired
159 if quality_parsed(mimetype, parsed_ranges)]
/external/chromium-trace/catapult/third_party/Paste/paste/
Dhttpheaders.py854 (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
Dwsgiwrappers.py307 def __init__(self, content=b'', mimetype=None, code=200): argument
317 if not mimetype:
318 mimetype = defaults.get('content_type', 'text/html')
321 mimetype = '%s; charset=%s' % (mimetype, charset)
323 self.headers['Content-Type'] = mimetype
/external/chromium-trace/catapult/third_party/apiclient/googleapiclient/
Dhttp.py152 def mimetype(self): member in MediaUpload
284 def __init__(self, fd, mimetype, chunksize=DEFAULT_CHUNK_SIZE, argument
304 self._mimetype = mimetype
321 def mimetype(self): member in MediaIoBaseUpload
409 def __init__(self, filename, mimetype=None, chunksize=DEFAULT_CHUNK_SIZE, argument
427 if mimetype is None:
428 (mimetype, encoding) = mimetypes.guess_type(filename)
429 super(MediaFileUpload, self).__init__(fd, mimetype, chunksize=chunksize,
444 return MediaFileUpload(d['_filename'], mimetype=d['_mimetype'],
456 def __init__(self, body, mimetype='application/octet-stream', argument
[all …]
Ddiscovery.py708 mimetype=media_mime_type)
732 headers['content-type'] = media_upload.mimetype()
747 msg = MIMENonMultipart(*media_upload.mimetype().split('/'))
/external/curl/docs/examples/
Dcurlx.c268 char* mimetype; in main() local
321 mimetype = *(++args); in main()
337 if (mimetype==NULL || mimetypeaccept == NULL) badarg = 1; in main()
444 contenttype = malloc(15+strlen(mimetype)); in main()
445 sprintf(contenttype,"Content-type: %s",mimetype); in main()
/external/google-breakpad/src/testing/gtest/scripts/
Dupload.py715 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/")
/external/google-breakpad/src/testing/scripts/
Dupload.py715 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/")
/external/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/
Dupload-diffs.py941 mimetype = mimetypes.guess_type(filename)[0]
942 if not mimetype:
944 return mimetype.startswith("image/")
1149 mimetype = RunShell(["svn", "propget", "svn:mime-type",
1152 is_binary = bool(mimetype) and not mimetype.startswith("text/")
1167 mimetype, returncode = RunShellWithReturnCode(cmd)
1171 mimetype = ""
1173 mimetype = mimetype.strip()
1178 is_binary = (bool(mimetype) and
1179 not mimetype.startswith("text/") and
[all …]
/external/autotest/frontend/tko/
Dviews.py33 graphing_utils.handle_plot_request(id, max_age), mimetype='image/png')
Dcsv_encoder.py18 response = django.http.HttpResponse(mimetype='text/csv')
/external/autotest/frontend/afe/feeds/
Dfeed.py34 response = HttpResponse(mimetype=feedgen.mime_type)
/external/jetty/src/java/org/eclipse/jetty/servlet/
DDefaultServlet.java977 … String mimetype=(content.getContentType()==null?null:content.getContentType().toString()); in sendData() local
978 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()
/external/chromium-trace/catapult/third_party/WebOb/docs/pycon2011/
Drequest_table.rst63mimetype CommonRequestDescriptorMixin
/external/icu/icu4c/source/tools/genrb/
Dwrtxml.cpp547 …SResource *res, const char *container, const char *restype, const char *mimetype, const char *id, … in printContainer() argument
569 if (mimetype != NULL) { in printContainer()
570 printAttribute("mime-type", mimetype, (int32_t) uprv_strlen(mimetype)); in printContainer()
/external/chromium-trace/catapult/firefighter/base/
Dbigquery.py67 media_buffer, mimetype='application/octet-stream')
/external/chromium-trace/catapult/third_party/Paste/tests/
Dtest_wsgiwrappers.py101 response = WSGIResponse(mimetype='text/html; charset=UTF-8')
/external/libvorbis/
DCHANGES84 * application/ogg mimetype is now official
/external/regex-re2/lib/codereview/
Dcodereview.py3319 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/")
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/
Dutils.py959 for possible_type, mimetype in starts_with_mappings.items():
961 rtype = mimetype
/external/chromium-trace/catapult/third_party/gsutil/third_party/httplib2/ref/
Dref.css157 .mimetype { font-family: avantgarde, sans-serif; }
/external/chromium-trace/catapult/third_party/WebOb/docs/
Ddifferences.txt154 ``mimetype`` argument is ``content_type``, and ``content_type`` is
390 mimetype:
/external/autotest/frontend/afe/
Drpc_utils.py100 response = django.http.HttpResponse(response_data, mimetype=content_type)
/external/guice/extensions/struts2/lib/
Djetty-6.1.0.jar ... .xml.XmlParser$Node node String extension String mimeType protected void initWelcomeFileList (org.mortbay.xml. ...
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.mortbay.jetty.server_6.1.23.v201004211559.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...

12