Liking cljdoc? Tell your friends :D

gemini.core


body-as-string!clj

(body-as-string! {r :request})

Read all the response into a strings and returns it. The request will be closed.

Read all the response into a strings and returns it.  The request
will be closed.
sourceraw docstring

closeclj

(close {r :request})

Close a request.

Close a request.
sourceraw docstring

code-descriptionclj

Human description for every response code.

Human description for every response code.
sourceraw docstring

fetchclj

(fetch uri)
(fetch host uri)
(fetch host port uri)

Make a gemini request. uri may be a URI, URL or string, and represent the request to perform. host and port are extracted from the given uri in not given, and port defaults to 1965. The returned request needs to be closed when done.

Make a gemini request.  `uri` may be a URI, URL or string, and
represent the request to perform.  `host` and `port` are extracted
from the given `uri` in not given, and port defaults to 1965.  The
returned request needs to be closed when done.
sourceraw docstring

is-client-cert-required?clj

(is-client-cert-required? {c :code})
source

is-input?clj

(is-input? {c :code})
source

is-permanent-failure?clj

(is-permanent-failure? {c :code})
source

is-redirect?clj

(is-redirect? {c :code})
source

is-success?clj

(is-success? {c :code})
source

is-temporary-failure?clj

(is-temporary-failure? {c :code})
source

with-requestcljmacro

(with-request [var req] & body)

Make a request, eval body when it succeed and automatically close the request, or throw an exception if the request fails.

Make a request, eval `body` when it succeed and automatically close
the request, or throw an exception if the request fails.
sourceraw docstring

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

× close