Go to Latest
function contentType
import { contentType } from "https://dotland.deno.dev/std@0.36.0/media_types/mod.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