Sign in
fuchsia
/
third_party
/
dart-pkg
/
bfe4d66dd3484916352abbf0b17a7c748f9fe962
/
.
/
mime
/
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
}