Central MIME/content-type helpers used by Volt.
Most file extension lookups delegate to the MIME package. Volt keeps a
small amount of policy here for browser module responses and asset
classification so callers do not need to repeat content-type literals.
Summary
Functions
Return whether a path is a MIME-known, non-source static asset.
CSS content type used by Volt responses.
Return whether a content type should be treated as CSS.
JavaScript module content type used by Volt responses.
Return whether a content type should be treated as JavaScript.
Fallback binary content type.
Return the content type for a path.
Functions
Return whether a path is a MIME-known, non-source static asset.
@spec css() :: String.t()
CSS content type used by Volt responses.
Return whether a content type should be treated as CSS.
@spec javascript() :: String.t()
JavaScript module content type used by Volt responses.
Return whether a content type should be treated as JavaScript.
@spec octet_stream() :: String.t()
Fallback binary content type.
Return the content type for a path.