On this page:
read-mime-types
make-path->mime-type

5.5 MIME Types

 (require web-server/private/mime-types)
  package: web-server-lib
This module provides function for dealing with "mime.types" files.

procedure

(read-mime-types p)  (hash/c symbol? bytes?)

  p : path-string?
Reads the "mime.types" file from p and constructs a hash table mapping extensions to MIME types.

procedure

(make-path->mime-type p)  (path? . -> . (or/c false/c bytes?))

  p : path-string?
Uses a read-mime-types with p and constructs a function from paths to their MIME type.