Liking cljdoc? Tell your friends :D

cider.nrepl.middleware.slurp

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

*max-content-size*clj

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.
sourceraw docstring

base64-bytesclj

(base64-bytes buff)
source

connection-timeout-msclj

Connect/read timeout for slurping non-file URLs.

Connect/read timeout for slurping non-file URLs.
sourceraw docstring

content-type-patternclj

source

get-file-content-typeclj

(get-file-content-type p)
source

handle-slurpclj

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

known-content-typesclj

source

normalize-content-typeclj

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

slurp-replyclj

(slurp-reply location content-type buff)
source

slurp-url-to-content+bodyclj

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

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