PyDocs

Nav

Internet Data Handling

add_type

mimetypes

function (source)
  • add_type(type, ext, strict=True)
Add a mapping between a type and an extension.

When the extension is already known, the new
type will replace the old one. When the type
is already known the extension will be added
to the list of known extensions.

If strict is true, information will be added to
list of standard types, else to the list of non-standard
types.
0 Examples
No examples for mimetypes/add_type.
See Also
No see-alsos for mimetypes/add_type
0 Notes
No notes for add_type