Module

std/ws/mod.ts>acceptable

Deno standard library
Go to Latest
function acceptable
Deprecated
Deprecated

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

import { acceptable } from "https://dotland.deno.dev/std@0.116.0/ws/mod.ts";

Parameters

req: { headers: Headers; }

Returns

boolean