Module extension

Module extension 

Source
Expand description

Helpers for dealing with translation between slugs and files

Functions§

infer_content_type
Given a file extension, infer its mime
infer_file_extension
Given a MemoIpld, attempt to infer a file extension. A ‘File-Extension’ header will be used (if present); otherwise, the extension will be inferred from the ‘Content-Type’ header (again, if present).