shrub/gen/curl.hoon
2016-11-23 16:34:10 -08:00

13 lines
212 B
Plaintext

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