(join-paths local-path base-remote accessed-path)
Safely combines a uri and a remote path.
Safely combines a uri and a remote path.
(prepare-cookies resp)
Removes the :domain and :secure keys and converts the :expires key (a Date) to a string in the ring response map resp. Returns resp with cookies properly munged.
Removes the :domain and :secure keys and converts the :expires key (a Date) to a string in the ring response map resp. Returns resp with cookies properly munged.
(slurp-binary is len)
Reads len bytes from InputStream is and returns a byte array.
Reads len bytes from InputStream is and returns a byte array.
(wrap-proxy handler proxied-path remote-base-uri & [http-opts])
Proxies requests from proxied-path, a local URI, to the remote URI at remote-base-uri, also a string.
Proxies requests from proxied-path, a local URI, to the remote URI at remote-base-uri, also a string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close