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

x/abc/vendor/https/deno.land/std/ws/mod.ts>acceptable

A better Deno framework to create web application.
Latest
function acceptable
import { acceptable } from "https://deno.land/x/abc@v1.3.3/vendor/https/deno.land/std/ws/mod.ts";

Returns true if input headers are usable for WebSocket, otherwise false.

Parameters

req: { headers: Headers; }

Returns

boolean