Liking cljdoc? Tell your friends :D

net.curiousprogrammer.url


fetch-as-streamclj

(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)
raw docstring

fetch-as-stringclj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close