Limper-SendFile
view release on metacpan or search on metacpan
lib/Limper/SendFile.pm view on Meta::CPAN
Liberally parses whatever date a client might give, returning a Unix timestamp.
# these all return 784111777
my $date = parse_date("Sun, 06 Nov 1994 08:49:37 GMT");
my $date = parse_date("Sunday, 06-Nov-94 08:49:37 GMT");
my $date = parse_date("Sun Nov 6 08:49:37 1994");
=head2 mime_types
Returns a B<HASH> of file extension / content-type pairs.
=head1 HOOKS
=head2 after
An B<after> hook is created to support B<If-Modified-Since> and B<If-Unmodified-Since>, comparing to B<Last-Modified>.
This runs for all defined routes, not just those using B<send_file>.
=head1 COPYRIGHT AND LICENSE
( run in 1.376 second using v1.01-cache-2.11-cpan-524268b4103 )