Liking cljdoc? Tell your friends :D

hive-rss.boundary.http

Fetch one feed over HTTP(S).

Conditional: the ETag and Last-Modified of the previous answer are sent back, so an unchanged feed costs a 304 and no body. Bounded: a body past max-bytes is refused while it streams, and every request has a timeout. Redirects are followed, but never from HTTPS down to HTTP.

Fetch one feed over HTTP(S).

Conditional: the ETag and Last-Modified of the previous answer are sent back,
so an unchanged feed costs a 304 and no body. Bounded: a body past
`max-bytes` is refused while it streams, and every request has a timeout.
Redirects are followed, but never from HTTPS down to HTTP.
raw docstring

fetch!clj

(fetch! url {:keys [etag last-modified timeout-ms max-bytes auth]})

Result of GETting url.

ok {:status :ok :body s :etag e :last-modified lm} for a 2xx, or {:status :not-modified} for a 304 answering etag/last-modified. auth (a Credential) is sent as Authorization, and so is a credential in the URL's userinfo when auth is absent; it follows a redirect only to the same origin. At most max-redirects redirects are followed. Errors: :rss/http-status (non-2xx; for 401/402/403 :reason carries the status and the server's short plain-text answer), :rss/too-large, :rss/insecure-redirect, :rss/too-many-redirects, :rss/fetch-failed. Error data carries the URL without userinfo.

Result of GETting `url`.

ok `{:status :ok :body s :etag e :last-modified lm}` for a 2xx, or
`{:status :not-modified}` for a 304 answering `etag`/`last-modified`.
`auth` (a Credential) is sent as Authorization, and so is a credential in
the URL's userinfo when `auth` is absent; it follows a redirect only to the
same origin. At most `max-redirects` redirects are followed.
Errors: `:rss/http-status` (non-2xx; for 401/402/403 `:reason` carries the
status and the server's short plain-text answer), `:rss/too-large`,
`:rss/insecure-redirect`, `:rss/too-many-redirects`, `:rss/fetch-failed`.
Error data carries the URL without userinfo.
sourceraw docstring

max-redirectsclj

source

user-agentclj

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close