Documentation / @blazetrails/rack / Mime
Variable: Mime
constMime: {match: (value,matcher) =>boolean;MIME_TYPES:Record<string,string>;mimeType: (ext,fallback) =>string|null; }
Defined in: packages/rack/lib/mime.ts:20
Type Declaration
match
match: (
value,matcher) =>boolean
Parameters
| Parameter | Type |
|---|---|
value | string |
matcher | string |
Returns
boolean
MIME_TYPES
MIME_TYPES:
Record<string,string>
mimeType
mimeType: (
ext,fallback) =>string|null
Parameters
| Parameter | Type | Default value |
|---|---|---|
ext | string | undefined |
fallback | string | null | "application/octet-stream" |
Returns
string | null
Missing Rails Name
downcase — PERMANENT