A fetched or read body as a Document, and the web-docs ISource over HTTP.
body->document is the seam every transport shares: the rule chain, the
parser and the document shape do not care whether the bytes arrived over
HTTP or off a local mirror, so a new transport is a new caller here.
A fetched or read body as a Document, and the `web-docs` ISource over HTTP. `body->document` is the seam every transport shares: the rule chain, the parser and the document shape do not care whether the bytes arrived over HTTP or off a local mirror, so a new transport is a new caller here.
(body->document body {:keys [url content-type parser] :as _ctx} opts)A fetched or read BODY as a Document, via the profile its shape selects.
ctx is {:url :content-type}. An explicit :parser overrides the profile's; the profile still supplies :profile/format and :profile/content-kind. Returns Result<Document>.
A fetched or read BODY as a Document, via the profile its shape selects.
ctx is {:url :content-type}. An explicit :parser overrides the profile's;
the profile still supplies :profile/format and :profile/content-kind.
Returns Result<Document>.(web-doc-source)(web-doc-source urls)(web-doc-source urls parser)Create a WebDocSource for URLS.
With no parser the response's shape selects one; an explicit parser is used for every URL. fetch-documents opts: :urls, :limit, :http-get-fn, :website-parser, :tool-name.
Create a WebDocSource for URLS. With no parser the response's shape selects one; an explicit parser is used for every URL. fetch-documents opts: :urls, :limit, :http-get-fn, :website-parser, :tool-name.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |