/third_party/python/Lib/test/ |
D | test_mimetypes.py | 3 import mimetypes 20 knownfiles = mimetypes.knownfiles 23 mimetypes.knownfiles = [] 24 mimetypes.inited = False 25 mimetypes._default_mime_types() 30 mimetypes.knownfiles = knownfiles 35 self.db = mimetypes.MimeTypes() 67 self.assertIsNone(mimetypes.read_mime_types("non-existent")) 73 mime_dict = mimetypes.read_mime_types(file) 82 with unittest.mock.patch.object(mimetypes, 'open', [all …]
|
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-mimetypes/ |
D | CMakeLists.txt | 1 project(lws-minimal-http-server-mimetypes C) 8 set(SAMP lws-minimal-http-server-mimetypes) 9 set(SRCS minimal-http-server-mimetypes.c)
|
D | README.md | 1 # lws minimal http server mimetypes 4 add support for extra mimetypes to a mount.
|
/third_party/python/Doc/library/ |
D | mimetypes.rst | 1 :mod:`mimetypes` --- Map filenames to MIME types 4 .. module:: mimetypes 9 **Source code:** :source:`Lib/mimetypes.py` 15 The :mod:`mimetypes` module converts between a filename or URL and the MIME type 163 >>> import mimetypes 164 >>> mimetypes.init() 165 >>> mimetypes.knownfiles 167 >>> mimetypes.suffix_map['.tgz'] 169 >>> mimetypes.encodings_map['.gz'] 171 >>> mimetypes.types_map['.tgz'] [all …]
|
D | netdata.rst | 18 mimetypes.rst
|
/third_party/python/Tools/scripts/ |
D | serve.py | 10 import mimetypes 18 type = mimetypes.guess_type(fn)[0]
|
/third_party/python/Doc/includes/ |
D | email-unpack.py | 7 import mimetypes 42 ext = mimetypes.guess_extension(part.get_content_type())
|
D | email-dir.py | 8 import mimetypes 56 ctype, encoding = mimetypes.guess_type(path)
|
D | email-read-alternative.py | 4 import mimetypes 56 extension = mimetypes.guess_extension(part.get_content_type())
|
/third_party/gstreamer/gstplugins_good/gst/multipart/ |
D | multipartmux.c | 74 static const MimeTypeMap mimetypes[] = { variable 135 klass->mimetypes = g_hash_table_new (g_str_hash, g_str_equal); in gst_multipart_mux_class_init() 136 for (i = 0; mimetypes[i].key; i++) { in gst_multipart_mux_class_init() 137 g_hash_table_insert (klass->mimetypes, (gpointer) mimetypes[i].key, in gst_multipart_mux_class_init() 138 (gpointer) mimetypes[i].val); in gst_multipart_mux_class_init() 262 mime = g_hash_table_lookup (klass->mimetypes, name); in gst_multipart_mux_get_mime()
|
D | multipartmux.h | 88 GHashTable *mimetypes; member
|
/third_party/glib/gio/ |
D | gcontenttype.c | 854 GHashTable *mimetypes) in enumerate_mimetypes_subdir() argument 868 g_hash_table_replace (mimetypes, mimetype, NULL); in enumerate_mimetypes_subdir() 877 GHashTable *mimetypes) in enumerate_mimetypes_dir() argument 895 enumerate_mimetypes_subdir (name, ent->d_name, mimetypes); in enumerate_mimetypes_dir() 917 GHashTable *mimetypes; in g_content_types_get_registered() local 923 mimetypes = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL); in g_content_types_get_registered() 927 enumerate_mimetypes_dir (dirs[i], mimetypes); in g_content_types_get_registered() 930 g_hash_table_iter_init (&iter, mimetypes); in g_content_types_get_registered() 937 g_hash_table_destroy (mimetypes); in g_content_types_get_registered()
|
/third_party/boost/libs/predef/doc/ |
D | pygments_init.rb | 11 filenames: ['*.jam','Jamfile','Jamroot'], mimetypes: ['text/x-jam']
|
/third_party/boost/tools/build/doc/src/pygments/ |
D | pygments_init.rb | 11 filenames: ['*.jam','Jamfile','Jamroot'], mimetypes: ['text/x-jam']
|
/third_party/python/Lib/test/libregrtest/ |
D | utils.py | 179 mimetypes = sys.modules['mimetypes'] 183 mimetypes._default_mime_types()
|
/third_party/libwebsockets/minimal-examples/http-server/ |
D | README.md | 14 minimal-http-server-mimetypes|Shows how to add support for additional mimetypes at runtime
|
/third_party/gstreamer/gstplugins_good/ext/gdk_pixbuf/ |
D | gstgdkpixbufdec.c | 118 char **mimetypes; in gst_gdk_pixbuf_dec_get_capslist() local 122 mimetypes = gdk_pixbuf_format_get_mime_types (pixbuf_format); in gst_gdk_pixbuf_dec_get_capslist() 124 for (mimetype = mimetypes; *mimetype; mimetype++) { in gst_gdk_pixbuf_dec_get_capslist() 127 g_strfreev (mimetypes); in gst_gdk_pixbuf_dec_get_capslist()
|
/third_party/python/Lib/urllib/ |
D | request.py | 1500 import mimetypes 1508 mtype = mimetypes.guess_type(filename)[0] 1534 import mimetypes 1574 mtype = mimetypes.guess_type(req.full_url)[0] 2011 import mimetypes 2020 mtype = mimetypes.guess_type(url)[0] 2044 import mimetypes 2087 mtype = mimetypes.guess_type("ftp:" + url)[0]
|
/third_party/libwebsockets/plugins/deaddrop/ |
D | README.md | 63 "extra-mimetypes": {
|
/third_party/googletest/googletest/scripts/ |
D | upload.py | 53 import mimetypes 550 return mimetypes.guess_type(filename)[0] or 'application/octet-stream' 730 mimetype = mimetypes.guess_type(filename)[0]
|
/third_party/PyYAML/examples/pygments-lexer/ |
D | yaml.py | 163 mimetypes = ['text/x-yaml'] variable in YAMLLexer
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0a3.rst | 242 Include brotli .br encoding in mimetypes encodings_map 510 Proxy the `SimpleHTTPRequestHandler.guess_type` to `mimetypes.guess_type` so 511 the `mimetypes.init` is called lazily to avoid unnecessary costs when
|
/third_party/python/Lib/http/ |
D | server.py | 96 import mimetypes 882 guess, _ = mimetypes.guess_type(path)
|
/third_party/gstreamer/gstreamer/docs/random/ds/ |
D | 0.9-suggested-changes | 67 "An idea I had once was to force registration of mimetypes and then
|
/third_party/libwebsockets/READMEs/ |
D | README.lwsws.md | 400 6) You can also define a list of additional mimetypes per-mount 402 "extra-mimetypes": { 408 Normally a file suffix MUST match one of the canned mimetypes or one of the extra 409 mimetypes, or the file is not served. This adds a little bit of security because
|