Guide Home
POD Home

Sloop::Static::MimeType

DESCRIPTION

This is mostly a hash of 700+ different MIME types keyed by lower case file suffix.

ATTRIBUTES

$Sloop::Static::MimeType::Types is the hash described above.

SUBROUTINES

Sloop::Static::MimeType::get($file)

Returns a MIME type string appropriate for use in HTTP headers, and the 'type' parameter to Sloop::Client::reply(), or undef if no matching type is found.

$file is a file name or path.