# `Volt.MIME`
[🔗](https://github.com/elixir-volt/volt/blob/v0.16.0/lib/volt/mime.ex#L1)

Central MIME/content-type helpers used by Volt.

Most file extension lookups delegate to the `MIME` package. Volt keeps a
small amount of policy here for browser module responses and asset
classification so callers do not need to repeat content-type literals.

# `asset?`

```elixir
@spec asset?(String.t()) :: boolean()
```

Return whether a path is a MIME-known, non-source static asset.

# `css`

```elixir
@spec css() :: String.t()
```

CSS content type used by Volt responses.

# `css?`

```elixir
@spec css?(String.t() | nil) :: boolean()
```

Return whether a content type should be treated as CSS.

# `javascript`

```elixir
@spec javascript() :: String.t()
```

JavaScript module content type used by Volt responses.

# `javascript?`

```elixir
@spec javascript?(String.t() | nil) :: boolean()
```

Return whether a content type should be treated as JavaScript.

# `octet_stream`

```elixir
@spec octet_stream() :: String.t()
```

Fallback binary content type.

# `type`

```elixir
@spec type(String.t()) :: String.t()
```

Return the content type for a path.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
