How to Fetch a GET request like in Javascript: Revision history

Jump to: navigation, search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 August 2025

  • curprev 01:0201:02, 29 August 2025Admin talk contribs 203 bytes +203 Created page with " <source> defmodule App do # Install Req from hex def fetch do task = Task.async(fn -> Req.get!("https://api.github.com/repos/wojtekmach/req") end) Task.await(task) end end </source>"