(add-params builder params location)
Helper fn for adding parameters to OkHttp Builders.
Helper fn for adding parameters to OkHttp Builders.
(build-request {:keys [method url query header path body]})
Builds a Request object for OkHttp.
Builds a Request object for OkHttp.
(fetch {:keys [conn as] :as args})
Performs the request.
If :as is passed as :stream, returns an InputStream. If passed as :socket, returns the underlying UNIX socket for direct I/O.
Performs the request. If :as is passed as :stream, returns an InputStream. If passed as :socket, returns the underlying UNIX socket for direct I/O.
(interpolate-path path value-map)
Replaces all occurrences of {k1}, {k2} ... with the value map provided.
Example: given a/path/{id}/on/{not-this}/root/{id} and {:id hello} results in: a/path/hello/{not-this}/root/hello.
Replaces all occurrences of {k1}, {k2} ... with the value map provided. Example: given a/path/{id}/on/{not-this}/root/{id} and {:id hello} results in: a/path/hello/{not-this}/root/hello.
(stream->req-body stream)
Converts an InputStream to OkHttp RequestBody.
Converts an InputStream to OkHttp RequestBody.
(unix-socket-client-builder path)
Constructs a client builder for a UNIX socket.
Also returns the underlying socket for direct access.
Constructs a client builder for a UNIX socket. Also returns the underlying socket for direct access.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close