Skip to content

Documentation


Documentation / @blazetrails/rack / Mime

Variable: Mime ​

const Mime: { 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 ​

ParameterType
valuestring
matcherstring

Returns ​

boolean

MIME_TYPES ​

MIME_TYPES: Record<string, string>

mimeType ​

mimeType: (ext, fallback) => string | null

Parameters ​

ParameterTypeDefault value
extstringundefined
fallbackstring | null"application/octet-stream"

Returns ​

string | null

Missing Rails Name ​

downcase — PERMANENT