MCPcopy
hub / github.com/urllib3/urllib3 / is_in_node

Function is_in_node

src/urllib3/contrib/emscripten/fetch.py:418–424  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

416
417
418def is_in_node() -> bool:
419 return (
420 hasattr(js, "process")
421 and hasattr(js.process, "release")
422 and hasattr(js.process.release, "name")
423 and js.process.release.name == "node"
424 )
425
426
427def is_worker_available() -> bool:

Callers 3

fetch.pyFile · 0.85
send_streaming_requestFunction · 0.85
send_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected