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).