Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/ws/mod.ts>acceptable

A modern runtime for JavaScript and TypeScript.
Go to Latest
function acceptable
import { acceptable } from "https://deno.land/x/deno@v0.28.0/std/ws/mod.ts";

Return whether given headers is acceptable for websocket

Parameters

req: { headers: Headers; }

Returns

boolean