Sign in
dart
/
mime
/
4ca2f5edaafe21f462922d34db99486a44bb08b8
/
.
/
example
/
example.dart
blob: af14cb08c1ab70d944daa587306cb8c73d1871bf [
file
] [
log
] [
blame
]
import
'package:mime/mime.dart'
;
void
main
()
{
print
(
lookupMimeType
(
'test.html'
));
// text/html
print
(
lookupMimeType
(
'test'
,
headerBytes
:
[
0xFF
,
0xD8
]));
// image/jpeg
print
(
lookupMimeType
(
'test.html'
,
headerBytes
:
[
0xFF
,
0xD8
]));
// image/jpeg
}