Skip to main content
Module

x/acorn/deps.ts>contentType

A focused RESTful server framework for Deno 🌰🦕
Go to Latest
function contentType
import { contentType } from "https://deno.land/x/acorn@0.0.1/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