1SVK::MimeDetect(3) User Contributed Perl Documentation SVK::MimeDetect(3)
2
3
4
6 SVK::MimeDetect - interface for MIME type detection algorithms
7
9 This defines an interface for MIME type detection algorithms. A MIME
10 type detection module doesn't need to inherit from this module, but it
11 does need to provide the same interface. See "INTERFACE" for details.
12
14 new
15 "new" should return a new object which implements the
16 "checktype_filename" method described below. The default
17 implementation simply returns an empty, blessed hash.
18
19 checktype_filename
20 Given a single, absolute filename as an argument, this method should
21 return a scalar with the MIME type of the file or "undef" if there is
22 an error.
23
24
25
26perl v5.36.0 2023-01-20 SVK::MimeDetect(3)