(headers ring-request & {:as opts})Returns headers for a SSE response. It adds specific SSE headers based on the
HTTP protocol version found in the ring-requestand the gzip content type
if necessary.
Options:
:headers: custom headers for the responseThe SSE headers this function provides can be overriden by the optional ones. Be carreful with the following headers:
Returns headers for a SSE response. It adds specific SSE headers based on the HTTP protocol version found in the `ring-request`and the gzip content type if necessary. Options: - `:headers`: custom headers for the response The SSE headers this function provides can be overriden by the optional ones. Be carreful with the following headers: - "Cache-Control" - "Content-Type" - "Connection"
(send-event! sse-gen event-type data-lines)(send-event! sse-gen event-type data-lines opts)Wrapper around the [p/send-event!] function. It provides multiple arities and defaults options.
Wrapper around the [p/send-event!] function. It provides multiple arities and defaults options.
(write-event! appendable event-type data-lines opts)Appends and event to an java.lang.Appendable buffer.
Appends and event to an java.lang.Appendable buffer.
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 |