Skip to main content
Module

x/alosaur/src/deps.ts>contentType

Alosaur - Deno web framework with many ES Decorators
Very Popular
Latest
function contentType
import { contentType } from "https://deno.land/x/alosaur@v1.1.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