std@0.95.0/ws/mod.ts

Deno standard library
GitHub Stars
2260
Go to Latest

acceptable

import { acceptable } from "https://deno.land/std@0.95.0/ws/mod.ts";

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

function acceptable(req: {
headers: Headers;
}
): boolean;