MVFM

fetch/request

Make an HTTP GET request and read the response as text

const app = mvfm(prelude, console_, fetch_);
const prog = app({}, ($) => {
  const response = $.fetch("https://httpbin.org/get");
  const body = $.fetch.text(response);
  return $.console.log(body);
});
await fold(defaults(app), prog);
Ctrl+Enter