Liking cljdoc? Tell your friends :D

starfederation.datastar.clojure.api.sse


add-keep-alive?clj

(add-keep-alive? ring-request)
source

base-SSE-headersclj

source

headersclj

(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 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"
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"
sourceraw docstring

send-event!clj

(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.
sourceraw docstring

write-event!clj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close