MCPcopy
hub / github.com/browserless/browserless / isHTTP

Function isHTTP

src/utils.ts:39–43  ·  view source on GitHub ↗
(
  writeable: ServerResponse | Duplex,
)

Source from the content-addressed store, hash-verified

37import path from 'path';
38
39const isHTTP = (
40 writeable: ServerResponse | Duplex,
41): writeable is ServerResponse => {
42 return (writeable as ServerResponse).writeHead !== undefined;
43};
44
45const __dirname = path.dirname(fileURLToPath(import.meta.url));
46

Callers 2

isConnectedFunction · 0.85
writeResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected