Skip to main content
Module

x/alosaur/src/deps.ts>contentType

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
function contentType
import { contentType } from "https://deno.land/x/alosaur@v0.37.0/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