(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.
Human description for every response code.
Human description for every response code.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close