Skip to main content
Module

std/ws/mod.ts>acceptable

Deno standard library
Go to Latest
function acceptable
import { acceptable } from "https://deno.land/std@0.108.0/ws/mod.ts";

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

Parameters

req: { headers: Headers; }

Returns

boolean