Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alosaur/src/deps.ts>contentType

Alosaur - Deno web framework with many decorators
Go to Latest
function contentType
import { contentType } from "https://deno.land/x/alosaur@v0.31.1/src/deps.ts";

Given an extension or media type, return the full Content-Type header string. Returns undefined if not resolvable.

Parameters

str: string

Returns

string | undefined