Skip to main content
Module

x/oak/deps.ts>lookup

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function lookup
import { lookup } from "https://deno.land/x/oak@v10.6.0/deps.ts";

Given an extension, lookup the appropriate media type for that extension. Likely you should be using contentType() though instead.

Parameters

path: string

Returns

string | undefined