Home
last modified time | relevance | path

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

123

/external/python/cpython2/Doc/library/
Demail.mime.rst35 *_maintype* is the :mailheader:`Content-Type` major type (e.g. :mimetype:`text`
36 or :mimetype:`image`), and *_subtype* is the :mailheader:`Content-Type` minor
37 type (e.g. :mimetype:`plain` or :mimetype:`gif`). *_params* is a parameter
53 class for MIME messages that are not :mimetype:`multipart`. The primary
56 :mimetype:`multipart` messages. If :meth:`~email.message.Message.attach`
69 class for MIME messages that are :mimetype:`multipart`. Optional *_subtype*
70 defaults to :mimetype:`mixed`, but can be used to specify the subtype of the
71 message. A :mailheader:`Content-Type` header of :mimetype:`multipart/_subtype`
99 major type :mimetype:`application`. *_data* is a string containing the raw
101 :mimetype:`octet-stream`.
[all …]
Demail.generator.rst92 except that non-\ :mimetype:`text` parts are substituted with a format string
99 message. If the subpart is of main type :mimetype:`text`, then it prints the
103 If the subpart is not of main type :mimetype:`text`, optional *fmt* is a format
107 * ``type`` -- Full MIME type of the non-\ :mimetype:`text` part
109 * ``maintype`` -- Main MIME type of the non-\ :mimetype:`text` part
111 * ``subtype`` -- Sub-MIME type of the non-\ :mimetype:`text` part
113 * ``filename`` -- Filename of the non-\ :mimetype:`text` part
115 * ``description`` -- Description associated with the non-\ :mimetype:`text` part
117 * ``encoding`` -- Content transfer encoding of the non-\ :mimetype:`text` part
Demail.errors.rst45 terminating boundary in a :mimetype:`multipart/\*` message when strict parsing
54 :mimetype:`multipart` or missing. :exc:`MultipartConversionError` multiply
67 :mimetype:`multipart/alternative` had a malformed header, that nested message
77 but had no :mimetype:`boundary` parameter.
92 :mimetype:`multipart`, but no subparts were found. Note that when a message
94 return false even though its content type claims to be :mimetype:`multipart`.
Demail.message.rst22 MIME container documents (e.g. :mimetype:`multipart/\*` and
23 :mimetype:`message/rfc822`).
141 will be added with a value of :mimetype:`text/plain`. Whether the
153 The message will be assumed to be of type :mimetype:`text/\*`, with the
320 lower case of the form :mimetype:`maintype/subtype`. If there was no
326 :rfc:`2045` defines a message's default type to be :mimetype:`text/plain`
327 unless it appears inside a :mimetype:`multipart/digest` container, in
328 which case it would be :mimetype:`message/rfc822`. If the
330 :rfc:`2045` mandates that the default type be :mimetype:`text/plain`.
337 Return the message's main content type. This is the :mimetype:`maintype`
[all …]
Demail.parser.rst197 * Most non-\ :mimetype:`multipart` type messages are parsed as a single message
202 * All :mimetype:`multipart` type messages will be parsed as a container message
209 * Most messages with a content type of :mimetype:`message/\*` (e.g.
210 :mimetype:`message/delivery-status` and :mimetype:`message/rfc822`) will also be
216 their :mimetype:`multipart`\ -edness. Such messages may have a
217 :mailheader:`Content-Type` header of type :mimetype:`multipart`, but their
Demail.iterators.rst34 :mimetype:`text`.
37 MIME type of :mimetype:`text/\*`.
Demail.encoders.rst10 is especially true for :mimetype:`image/\*` and :mimetype:`text/\*` type messages
/external/python/cpython3/Doc/library/
Demail.mime.rst43 *_maintype* is the :mailheader:`Content-Type` major type (e.g. :mimetype:`text`
44 or :mimetype:`image`), and *_subtype* is the :mailheader:`Content-Type` minor
45 type (e.g. :mimetype:`plain` or :mimetype:`gif`). *_params* is a parameter
68 class for MIME messages that are not :mimetype:`multipart`. The primary
71 :mimetype:`multipart` messages. If :meth:`~email.message.Message.attach`
83 class for MIME messages that are :mimetype:`multipart`. Optional *_subtype*
84 defaults to :mimetype:`mixed`, but can be used to specify the subtype of the
85 message. A :mailheader:`Content-Type` header of :mimetype:`multipart/_subtype`
117 major type :mimetype:`application`. *_data* is a string containing the raw
119 :mimetype:`octet-stream`.
[all …]
Demail.errors.rst51 :mimetype:`multipart` or missing. :exc:`MultipartConversionError` multiply
65 :mimetype:`multipart/alternative` had a malformed header, that nested message
71 but had no :mimetype:`boundary` parameter.
100 :mimetype:`multipart`, but no subparts were found. Note that when a message
102 return false even though its content type claims to be :mimetype:`multipart`.
Demail.compat32-message.rst30 having a MIME type such as :mimetype:`multipart/\*` or
31 :mimetype:`message/rfc822`.
49 :mimetype:`multipart/\*` and :mimetype:`message/rfc822`).
253 will be added with a value of :mimetype:`text/plain`. Whether the
431 lower case of the form :mimetype:`maintype/subtype`. If there was no
437 :rfc:`2045` defines a message's default type to be :mimetype:`text/plain`
438 unless it appears inside a :mimetype:`multipart/digest` container, in
439 which case it would be :mimetype:`message/rfc822`. If the
441 :rfc:`2045` mandates that the default type be :mimetype:`text/plain`.
446 Return the message's main content type. This is the :mimetype:`maintype`
[all …]
Demail.message.rst29 :mimetype:`multipart/\*` or :mimetype:`message/rfc822`.
49 documents such as :mimetype:`multipart/\*` and :mimetype:`message/rfc822`
312 :mimetype:`maintype/subtype`. If there is no :mailheader:`Content-Type`
319 a message's default type to be :mimetype:`text/plain` unless it appears
320 inside a :mimetype:`multipart/digest` container, in which case it would
321 be :mimetype:`message/rfc822`. If the :mailheader:`Content-Type` header
323 type be :mimetype:`text/plain`.)
328 Return the message's main content type. This is the :mimetype:`maintype`
334 Return the message's sub-content type. This is the :mimetype:`subtype`
341 type of :mimetype:`text/plain`, except for messages that are subparts of
[all …]
Demail.generator.rst233 except that non-\ :mimetype:`text` parts are not serialized, but are instead
242 :mimetype:`text`, print the decoded payload of the subpart, and if the main
243 type is not :mimetype:`text`, instead of printing it fill in the string
250 * ``type`` -- Full MIME type of the non-\ :mimetype:`text` part
252 * ``maintype`` -- Main MIME type of the non-\ :mimetype:`text` part
254 * ``subtype`` -- Sub-MIME type of the non-\ :mimetype:`text` part
256 * ``filename`` -- Filename of the non-\ :mimetype:`text` part
258 * ``description`` -- Description associated with the non-\ :mimetype:`text` part
260 * ``encoding`` -- Content transfer encoding of the non-\ :mimetype:`text` part
Demail.iterators.rst37 :mimetype:`text`.
40 MIME type of :mimetype:`text/\*`.
Demail.parser.rst295 * Most non-\ :mimetype:`multipart` type messages are parsed as a single message
300 * All :mimetype:`multipart` type messages will be parsed as a container message
306 * Most messages with a content type of :mimetype:`message/\*` (such as
307 :mimetype:`message/delivery-status` and :mimetype:`message/rfc822`) will also
314 their :mimetype:`multipart`\ -edness. Such messages may have a
315 :mailheader:`Content-Type` header of type :mimetype:`multipart`, but their
Demail.encoders.rst19 is especially true for :mimetype:`image/\*` and :mimetype:`text/\*` type messages
/external/python/google-api-python-client/tests/
Dtest_http.py214 self.assertEqual('image/png', upload.mimetype())
217 self.assertEqual('application/octet-stream', upload.mimetype())
222 self.assertEqual('image/png', upload.mimetype())
231 self.assertEqual('image/png', new_upload.mimetype())
239 datafile('small.png'), mimetype='image/png', chunksize=-2,
243 media = MediaInMemoryUpload(b'abcdef', mimetype='text/plain', chunksize=10,
245 self.assertEqual('text/plain', media.mimetype())
285 fd=fd, mimetype='image/png', chunksize=500, resumable=True)
286 self.assertEqual('image/png', upload.mimetype())
295 fd=f, mimetype='image/png', chunksize=500, resumable=True)
[all …]
/external/curl/docs/examples/
Dcurlx.c280 char *mimetype; in main() local
346 mimetype = *(++args); in main()
375 if(mimetype == NULL || mimetypeaccept == NULL) in main()
495 contenttype = malloc(15 + strlen(mimetype)); in main()
496 snprintf(contenttype, 15 + strlen(mimetype), "Content-type: %s", mimetype); in main()
/external/python/cpython3/Lib/test/test_email/
Dtest_contentmanager.py761 def content_object_as_header_receiver(self, obj, mimetype): argument
763 m.set_content(obj, *mimetype, headers=(
769 def content_object_as_disposition_inline_receiver(self, obj, mimetype): argument
771 m.set_content(obj, *mimetype, disposition='inline')
774 def content_object_as_non_ascii_filename_receiver(self, obj, mimetype): argument
776 m.set_content(obj, *mimetype, disposition='inline', filename='bár.txt')
781 def content_object_as_cid_receiver(self, obj, mimetype): argument
783 m.set_content(obj, *mimetype, cid='some_random_stuff')
786 def content_object_as_params_receiver(self, obj, mimetype): argument
789 m.set_content(obj, *mimetype, params=params)
/external/python/google-api-python-client/googleapiclient/
Dhttp.py281 def mimetype(self): member in MediaUpload
413 def __init__(self, fd, mimetype, chunksize=DEFAULT_CHUNK_SIZE, argument
433 self._mimetype = mimetype
450 def mimetype(self): member in MediaIoBaseUpload
537 def __init__(self, filename, mimetype=None, chunksize=DEFAULT_CHUNK_SIZE, argument
555 if mimetype is None:
557 mimetype, _ = mimetypes.guess_type(filename)
558 if mimetype is None:
560 mimetype = 'application/octet-stream'
561 super(MediaFileUpload, self).__init__(fd, mimetype, chunksize=chunksize,
[all …]
/external/python/cpython2/Lib/
Dmimetypes.py262 mimetype, datatype = _winreg.QueryValueEx(
267 mimetype = mimetype.encode(default_encoding)
270 self.add_type(mimetype, subkeyname, strict)
/external/googletest/googletest/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/googletest/googlemock/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/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/curl/lib/
Dmime.c1106 Curl_safefree(part->mimetype); in Curl_mime_cleanpart()
1191 res = curl_mime_type(dst, src->mimetype); in Curl_mime_duppart()
1385 CURLcode curl_mime_type(curl_mimepart *part, const char *mimetype) in curl_mime_type() argument
1390 Curl_safefree(part->mimetype); in curl_mime_type()
1391 part->mimetype = NULL; in curl_mime_type()
1393 if(mimetype) { in curl_mime_type()
1394 part->mimetype = strdup(mimetype); in curl_mime_type()
1395 if(!part->mimetype) in curl_mime_type()
1688 customct = part->mimetype; in Curl_mime_prepare_headers()
1840 CURLcode curl_mime_type(curl_mimepart *part, const char *mimetype) in curl_mime_type() argument
[all …]

123