(fetch-as-stream url timeout)
Opens stream for given URL and returns the open stream (see https://stackoverflow.com/a/5351894/1184752)
timeout
is applied as both connection and socket read timeout.)
The client is responsible for closing the stream,
via .close
or .disconnect
(see https://stackoverflow.com/questions/4767553/safe-use-of-httpurlconnection)
Opens stream for given URL and returns the open stream (see https://stackoverflow.com/a/5351894/1184752) `timeout` is applied as both connection and socket read timeout.) The client is responsible for closing the stream, via `.close` or `.disconnect` (see https://stackoverflow.com/questions/4767553/safe-use-of-httpurlconnection)
(fetch-as-string url timeout)
As fetch-as-stream
but converts the result to String
and closes (disconnects) the URL input stream.
As `fetch-as-stream` but converts the result to String and closes (disconnects) the URL input stream.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close