shrub/gen/curl.hoon
2018-03-18 21:18:20 -07:00

15 lines
236 B
Plaintext

:: Fetch contents at url
::
:::: /hoon/curl/gen
::
/? 310
/- sole
/+ old-zuse
=, old-zuse
=, sole
:- %get |= {^ {a/tape ~} ~}
^- (sole-request (cask httr))
%+ sole-at (scan a auri:urlp)
|= hit/httr
(sole-so %httr hit)