Home
last modified time | relevance | path

Searched refs:mime (Results 1 – 25 of 259) sorted by relevance

1234567891011

/third_party/node/deps/npm/node_modules/mime-types/
DHISTORY.md4 * deps: mime-db@~1.35.0
14 * deps: mime-db@~1.33.0
27 * deps: mime-db@~1.30.0
41 * deps: mime-db@~1.29.0
51 * deps: mime-db@~1.27.0
52 - Add new mime types
58 * deps: mime-db@~1.26.0
59 - Add new mime types
64 * deps: mime-db@~1.25.0
65 - Add new mime types
[all …]
DREADME.md1 # mime-types
11 Similar to [the `mime@1.x` module](https://www.npmjs.com/package/mime), except:
14 `mime-types` simply returns `false`, so do
15 `var type = mime.lookup('unrecognized') || 'application/octet-stream'`.
16 - No `new Mime()` business, so you could do `var lookup = require('mime-types').lookup`.
20 Otherwise, the API is compatible with `mime` 1.x.
29 $ npm install mime-types
34 All mime types are based on [mime-db](https://www.npmjs.com/package/mime-db),
35 so open a PR there if you'd like to add mime types.
40 var mime = require('mime-types')
[all …]
Dindex.js56 var mime = match && db[match[1].toLowerCase()]
58 if (mime && mime.charset) {
59 return mime.charset
83 var mime = str.indexOf('/') === -1
87 if (!mime) {
92 if (mime.indexOf('charset') === -1) {
93 var charset = exports.charset(mime)
94 if (charset) mime += '; charset=' + charset.toLowerCase()
97 return mime
159 var mime = db[type]
[all …]
/third_party/curl/tests/libtest/
Dlib643.c85 curl_mime *mime = NULL; in once() local
104 mime = curl_mime_init(curl); in once()
105 if(!mime) { in once()
112 part = curl_mime_addpart(mime); in once()
115 curl_mime_free(mime); in once()
152 part = curl_mime_addpart(mime); in once()
155 curl_mime_free(mime); in once()
169 part = curl_mime_addpart(mime); in once()
172 curl_mime_free(mime); in once()
195 part = curl_mime_addpart(mime); in once()
[all …]
Dlib654.c72 curl_mime *mime = NULL; in test() local
106 mime = curl_mime_init(easy); in test()
107 part = curl_mime_addpart(mime); in test()
114 part = curl_mime_addpart(mime); in test()
116 part = curl_mime_addpart(mime); in test()
121 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
133 curl_mime_free(mime); in test()
134 mime = NULL; /* Already cleaned up. */ in test()
169 curl_mime_free(mime); in test()
Dlib668.c58 curl_mime *mime = NULL; in test() local
90 mime = curl_mime_init(easy); in test()
91 part = curl_mime_addpart(mime); in test()
96 part = curl_mime_addpart(mime); in test()
101 part = curl_mime_addpart(mime); in test()
108 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
119 curl_mime_free(mime); in test()
Dlib666.c32 curl_mime *mime = NULL; in test() local
58 mime = curl_mime_init(curl); in test()
59 if(!mime) { in test()
64 part = curl_mime_addpart(mime); in test()
95 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
115 curl_mime_free(mime); in test()
Dlib653.c34 curl_mime *mime = NULL; in test() local
39 mime = curl_mime_init(curls); in test()
40 field = curl_mime_addpart(mime); in test()
47 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test()
59 curl_mime_free(mime); in test()
Dlib652.c32 curl_mime *mime = NULL; in test() local
56 mime = curl_mime_init(curl); in test()
57 if(!mime) { in test()
62 part = curl_mime_addpart(mime); in test()
106 test_setopt(curl, CURLOPT_MIMEPOST, mime); in test()
123 curl_mime_free(mime); in test()
Dlib667.c63 curl_mime *mime = NULL; in test() local
95 mime = curl_mime_init(easy); in test()
96 part = curl_mime_addpart(mime); in test()
103 test_setopt(easy, CURLOPT_MIMEPOST, mime); in test()
114 curl_mime_free(mime); in test()
Dlib1553.c51 curl_mime *mime = NULL; in test() local
62 mime = curl_mime_init(curls); in test()
63 field = curl_mime_addpart(mime); in test()
70 easy_setopt(curls, CURLOPT_MIMEPOST, mime); in test()
99 curl_mime_free(mime); in test()
/third_party/glib/glib/tests/bookmarks/
Dfail-35.xbel1 …version="1.0"xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"m=""><title><mime:m…
Dfail-36.xbel1mime="http://www.freedesktop.org/standards/shared-mime-info"xmlns:bookmark="http://www.freedesktop…
Dfail-37.xbel1mime="http://www.freedesktop.org/standards/shared-mime-info"xmlns:bookmark="http://www.freedesktop…
Dfail-19.xbel1mime="http://www.freedesktop.org/standards/shared-mime-info"xmlns:bookmark="http://www.freedesktop…
/third_party/node/deps/npm/node_modules/mime-db/
DREADME.md1 # mime-db
9 This is a database of all mime types.
15 - http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
16 - http://hg.nginx.org/nginx/raw-file/default/conf/mime.types
21 npm install mime-db
28 `master` with [a release tag](https://github.com/jshttp/mime-db/tags) as the
32 https://cdn.rawgit.com/jshttp/mime-db/master/db.json
38 var db = require('mime-db');
46 The JSON file is a map lookup for lowercased mime types.
47 Each mime type has the following properties:
[all …]
/third_party/curl/lib/
Dmime.c1007 curl_mime *mime = (curl_mime *) instream; in mime_subparts_read() local
1017 curl_mimepart *part = mime->state.ptr; in mime_subparts_read()
1018 switch(mime->state.state) { in mime_subparts_read()
1024 mimesetstate(&mime->state, MIMESTATE_BOUNDARY1, mime->firstpart); in mime_subparts_read()
1028 mime->state.offset += 2; in mime_subparts_read()
1031 sz = readback_bytes(&mime->state, buffer, nitems, "\r\n--", 4, ""); in mime_subparts_read()
1033 mimesetstate(&mime->state, MIMESTATE_BOUNDARY2, part); in mime_subparts_read()
1036 sz = readback_bytes(&mime->state, buffer, nitems, mime->boundary, in mime_subparts_read()
1037 strlen(mime->boundary), part? "\r\n": "--\r\n"); in mime_subparts_read()
1040 if(mime->easy && convbuf < buffer) { in mime_subparts_read()
[all …]
/third_party/skia/third_party/externals/microhttpd/src/examples/
Dspdy_fileserver.c45 #define GET_MIME_TYPE(fname, mime) do {\ argument
49 (mime) = strdup("application/octet-stream");\
54 if(0 == strcmp(__ext, "jpg")) (mime) = strdup("image/jpeg");\
55 else if(0 == strcmp(__ext, "png")) (mime) = strdup("image/png");\
56 else if(0 == strcmp(__ext, "css")) (mime) = strdup("text/css");\
57 else if(0 == strcmp(__ext, "gif")) (mime) = strdup("image/gif");\
58 else if(0 == strcmp(__ext, "htm")) (mime) = strdup("text/html");\
61 (mime) = strdup("application/octet-stream");\
65 if(NULL == (mime))\
167 char *mime=NULL; in standard_request_handler() local
[all …]
/third_party/glib/gio/xdgmime/
Dxdgmimeparent.c48 char *mime; member
86 free (list->parents[i].mime); in _xdg_mime_parent_list_free()
96 return strcmp (((XdgMimeParents *)v1)->mime, ((XdgMimeParents *)v2)->mime); in parent_entry_cmp()
101 const char *mime) in _xdg_mime_parent_list_lookup() argument
108 key.mime = (char *)mime; in _xdg_mime_parent_list_lookup()
153 if (strcmp (list->parents[i].mime, line) == 0) in _xdg_mime_parent_read_from_file()
168 list->parents[list->n_mimes].mime = strdup (line); in _xdg_mime_parent_read_from_file()
212 printf ("%s %s\n", list->parents[i].mime, *p); in _xdg_mime_parent_list_dump()
Dxdgmime.h112 const char **xdg_mime_get_mime_parents (const char *mime);
114 char ** xdg_mime_list_mime_parents (const char *mime);
115 const char *xdg_mime_unalias_mime_type (const char *mime);
116 const char *xdg_mime_get_icon (const char *mime);
117 const char *xdg_mime_get_generic_icon (const char *mime);
135 int _xdg_mime_mime_type_subclass (const char *mime,
137 const char *_xdg_mime_unalias_mime_type (const char *mime);
Dxdgmimecache.c367 const char *mime; member
464 mime_types[n].mime = mime_type; in cache_glob_lookup_fnmatch()
543 mime_types[n].mime = cache->buffer + mimetype_offset; in cache_glob_node_lookup_suffix()
631 if (strcmp (mimes[i].mime, mimes[j].mime) == 0) in filter_out_dupes()
635 mimes[j].mime = mimes[last].mime; in filter_out_dupes()
697 mime_types[i] = mimes[i].mime; in cache_glob_lookup_file_name()
896 is_super_type (const char *mime) in is_super_type() argument
898 return ends_with (mime, "/*"); in is_super_type()
903 _xdg_mime_cache_mime_type_subclass (const char *mime, in _xdg_mime_cache_mime_type_subclass() argument
910 umime = _xdg_mime_cache_unalias_mime_type (mime); in _xdg_mime_cache_mime_type_subclass()
[all …]
Dxdgmime.c831 xdg_mime_is_super_type (const char *mime) in xdg_mime_is_super_type() argument
833 return ends_with (mime, "/*"); in xdg_mime_is_super_type()
838 _xdg_mime_mime_type_subclass (const char *mime, in _xdg_mime_mime_type_subclass() argument
845 return _xdg_mime_cache_mime_type_subclass (mime, base); in _xdg_mime_mime_type_subclass()
847 umime = _xdg_mime_unalias_mime_type (mime); in _xdg_mime_mime_type_subclass()
880 xdg_mime_mime_type_subclass (const char *mime, in xdg_mime_mime_type_subclass() argument
885 return _xdg_mime_mime_type_subclass (mime, base); in xdg_mime_mime_type_subclass()
889 xdg_mime_list_mime_parents (const char *mime) in xdg_mime_list_mime_parents() argument
899 return _xdg_mime_cache_list_mime_parents (mime); in xdg_mime_list_mime_parents()
901 umime = _xdg_mime_unalias_mime_type (mime); in xdg_mime_list_mime_parents()
[all …]
/third_party/curl/docs/examples/
Dsmtp-mime.c79 curl_mime *mime; in main() local
109 mime = curl_mime_init(curl); in main()
125 part = curl_mime_addpart(mime); in main()
132 part = curl_mime_addpart(mime); in main()
134 curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime); in main()
159 curl_mime_free(mime); in main()
/third_party/python/Doc/library/
Demail.mime.rst1 :mod:`email.mime`: Creating email and MIME objects from scratch
4 .. module:: email.mime
7 **Source code:** :source:`Lib/email/mime/`
31 .. currentmodule:: email.mime.base
35 Module: :mod:`email.mime.base`
61 .. currentmodule:: email.mime.nonmultipart
65 Module: :mod:`email.mime.nonmultipart`
67 A subclass of :class:`~email.mime.base.MIMEBase`, this is an intermediate base
75 .. currentmodule:: email.mime.multipart
80 Module: :mod:`email.mime.multipart`
[all …]
/third_party/curl/src/
Dtool_formparse.c164 void tool_mime_free(struct tool_mime *mime) in tool_mime_free() argument
166 if(mime) { in tool_mime_free()
167 if(mime->subparts) in tool_mime_free()
168 tool_mime_free(mime->subparts); in tool_mime_free()
169 if(mime->prev) in tool_mime_free()
170 tool_mime_free(mime->prev); in tool_mime_free()
171 CONST_SAFEFREE(mime->name); in tool_mime_free()
172 CONST_SAFEFREE(mime->filename); in tool_mime_free()
173 CONST_SAFEFREE(mime->type); in tool_mime_free()
174 CONST_SAFEFREE(mime->encoder); in tool_mime_free()
[all …]

1234567891011