Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/doa/mod.ts>Request#is

A middleware framework for Deno's http serve🦕. Transplanted from Koa with ❤️
Latest
method Request.prototype.is
import { Request } from "https://deno.land/x/doa@v1.0.0/mod.ts";

Check whether the response is one of the listed types.

Parameters

types: string | string[]

Returns

string | boolean | null