Rich reading & handling for CIDER.
Goes with middleware.content-types, providing the capability to convert URLs to values which can be handled nicely.
Rich reading & handling for CIDER. Goes with middleware.content-types, providing the capability to convert URLs to values which can be handled nicely.
Maximum number of bytes cider/slurp is willing to read.
Larger resources get a size-only placeholder reply instead of their
content, protecting both the JVM and the client from unbounded reads.
Maximum number of bytes `cider/slurp` is willing to read. Larger resources get a size-only placeholder reply instead of their content, protecting both the JVM and the client from unbounded reads.
Connect/read timeout for slurping non-file URLs.
Connect/read timeout for slurping non-file URLs.
(handle-slurp handler msg)Message handler which just responds to slurp ops.
If the slurp is malformed, or fails, replies with a plain-text explanation rather than letting the error take down the handler.
Message handler which just responds to slurp ops. If the slurp is malformed, or fails, replies with a plain-text explanation rather than letting the error take down the handler.
(normalize-content-type content-type)nREPL's content-type headers are structured as a pair
[type {:as attrs}]. This method normalizes RFC
compliant content-types to this form.
nREPL's content-type headers are structured as a pair
`[type {:as attrs}]`. This method normalizes RFC
compliant content-types to this form.(slurp-url-to-content+body url-str)Attempts to parse and then to slurp a URL, producing a content-typed response.
Reads at most *max-content-size* bytes; larger resources produce a
size-only placeholder. IO failures throw - handle-slurp turns them
into a graceful reply.
Attempts to parse and then to slurp a URL, producing a content-typed response. Reads at most `*max-content-size*` bytes; larger resources produce a size-only placeholder. IO failures throw - `handle-slurp` turns them into a graceful reply.
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 |