fetch multimethod
Methods
- fetch(filename:Str, decode_hints:Hash={}) Source: stdlib.ngs:4408
read() and decode() the given file Example
fetch("1.json") # Data structure, the parsed JSON
- fetch(url:Str, decode_hints:Hash={}) Source: stdlib.ngs:4416
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:4422
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:4426
read() and decode() the given file Example
fetch(File("1.json")) # Data structure, the parsed JSON