Skip to main content
Module

x/oak/deps.ts>contentType

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function contentType
import { contentType } from "https://deno.land/x/oak@v10.6.0/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