Install using clojars deps coordinates:
This library contains some utilities to work with Brotli.
Credits to Anders and his work on Hyperlith from which this library takes it's code.
This library provides Brotli write profiles you can use like this:
(require
'[starfederation.datastar.clojure.api :as d*]
'[starfederation.datastar.clojure.adapter.Http-kit :as hk-gen]
'[starfederation.datastar.clojure.brotli :as brotli])
(defn handler [req]
(hk-gen/->sse-response
{hk-gen/write-profile (brotli/->brotli-profile)
hk-gen/on-open
(fn [sse]
(d*/with-open-sse sse
(do ...))
See docstrings in the starfederation.datastar.clojure.brotli namespace for
more information.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |