ys::http - The YS HTTP Library🔗
use: http
Use the alias for response mappings:
response =: http/get('https://example.com/data.json')
Import all names when the body-returning curl helper is preferred:
use http: :all
body =: curl('https://example.com/data.json')
delete(URL Opts?) → Map— Send an HTTP DELETE requestget(URL Opts?) → Map— Send an HTTP GET requesthead(URL Opts?) → Map— Send an HTTP HEAD requestpatch(URL Opts?) → Map— Send an HTTP PATCH requestpost(URL Opts?) → Map— Send an HTTP POST requestput(URL Opts?) → Map— Send an HTTP PUT requestcurl(URL) → Str— Get a URL and return its body