Home
last modified time | relevance | path

Searched refs:mimetypes (Results 1 – 25 of 53) sorted by relevance

123

/third_party/python/Lib/test/
Dtest_mimetypes.py3 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/
DCMakeLists.txt1 project(lws-minimal-http-server-mimetypes C)
8 set(SAMP lws-minimal-http-server-mimetypes)
9 set(SRCS minimal-http-server-mimetypes.c)
DREADME.md1 # lws minimal http server mimetypes
4 add support for extra mimetypes to a mount.
/third_party/python/Doc/library/
Dmimetypes.rst1 :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 …]
Dnetdata.rst18 mimetypes.rst
/third_party/python/Tools/scripts/
Dserve.py10 import mimetypes
18 type = mimetypes.guess_type(fn)[0]
/third_party/python/Doc/includes/
Demail-unpack.py7 import mimetypes
42 ext = mimetypes.guess_extension(part.get_content_type())
Demail-dir.py8 import mimetypes
56 ctype, encoding = mimetypes.guess_type(path)
Demail-read-alternative.py4 import mimetypes
56 extension = mimetypes.guess_extension(part.get_content_type())
/third_party/gstreamer/gstplugins_good/gst/multipart/
Dmultipartmux.c74 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()
Dmultipartmux.h88 GHashTable *mimetypes; member
/third_party/glib/gio/
Dgcontenttype.c854 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/
Dpygments_init.rb11 filenames: ['*.jam','Jamfile','Jamroot'], mimetypes: ['text/x-jam']
/third_party/boost/tools/build/doc/src/pygments/
Dpygments_init.rb11 filenames: ['*.jam','Jamfile','Jamroot'], mimetypes: ['text/x-jam']
/third_party/python/Lib/test/libregrtest/
Dutils.py179 mimetypes = sys.modules['mimetypes']
183 mimetypes._default_mime_types()
/third_party/libwebsockets/minimal-examples/http-server/
DREADME.md14 minimal-http-server-mimetypes|Shows how to add support for additional mimetypes at runtime
/third_party/gstreamer/gstplugins_good/ext/gdk_pixbuf/
Dgstgdkpixbufdec.c118 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/
Drequest.py1500 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/
DREADME.md63 "extra-mimetypes": {
/third_party/googletest/googletest/scripts/
Dupload.py53 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/
Dyaml.py163 mimetypes = ['text/x-yaml'] variable in YAMLLexer
/third_party/python/Misc/NEWS.d/
D3.9.0a3.rst242 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/
Dserver.py96 import mimetypes
882 guess, _ = mimetypes.guess_type(path)
/third_party/gstreamer/gstreamer/docs/random/ds/
D0.9-suggested-changes67 "An idea I had once was to force registration of mimetypes and then
/third_party/libwebsockets/READMEs/
DREADME.lwsws.md400 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

123