x/oak/isMediaType.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
function isMediaType
import { isMediaType } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/isMediaType.ts?s=isMediaType";

Given a value of the content type of a request and an array of types, provide the matching type or false if no types are matched.

Parameters

value: string[src]
types: string[][src]

Returns

string | false[src]