Version: 4.0.2
9.6 MIME Types
"private/mime-types.ss" provides function for dealing with "mime.types" files.
(read-mime-types p) → (hash-table/c symbol? bytes?) |
p : path? |
Reads the "mime.types" file from p and constructs a hash table mapping extensions to MIME types.
(make-path->mime-type p) → (path? . -> . bytes?) |
p : path? |
Uses a read-mime-types with p and constructs a function from paths to their MIME type.