MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / http.js

File http.js

host/network/src/main/http.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/* HTTP async handlers; worker parks the coro on the returned Promise so Python sees `fetch()` as a yielding builtin composing with `gather` / `with_timeout`. */
2
3export default ({ requests }) => ({
4 /* `fetch(url, options_json?)` -> JSON `{id, ok, status, headers, body}`. `id` cancels via `abort_request(id)`. `options_json` forwarded as `RequestInit`. */

Callers

nothing calls this directly

Calls 3

fetchFunction · 0.85
pushMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected