fetch multimethod

Methods

fetch(filename:Str, decode_hints:Hash={}) Source: stdlib.ngs:4608
read() and decode() the given file

Example

fetch("1.json")  # Data structure, the parsed JSON
fetch(url:Str, decode_hints:Hash={}) Source: stdlib.ngs:4616
Fetch HTTP(S) file and decode() it

Example

fetch('https://api.myip.com')  # Data structure, the parsed JSON
fetch(decode_hints:Hash={}) Source: stdlib.ngs:4622
Read standard input and decode() it, passing "source" equals "stdin" hint.

Example

fetch()  # Data structure, parsed stdin
fetch(p:Path, decode_hints:Hash={}) Source: stdlib.ngs:4626
read() and decode() the given file

Example

fetch(File("1.json"))  # Data structure, the parsed JSON