Skip to main content
Module

x/texa/src/util/utils.ts>extractType

A Deno web framework inspired by Oak and Express. Built-in support for WebSockets, middleware and routing.
Latest
function extractType
import { extractType } from "https://deno.land/x/texa@0.8.1/src/util/utils.ts";

Extract the media type of a content-type or accepts header.

Parameters

t: string

The media type.

Returns

string