(date-header-value ctx)
(error-response e req)
(error-response e _req _rsp)
(exception-handler ctx ex)
(handle-request ctx
ssl?
handler
rejected-handler
error-handler
executor
req
previous-response
body
keep-alive?)
(initialize-websocket-handler
req
{:keys [raw-stream? headers max-frame-payload max-frame-size allow-extensions?
compression? pipeline-transform heartbeats]
:or {raw-stream? false
max-frame-payload 65536
max-frame-size 1048576
allow-extensions? false
compression? false}
:as options})
(invalid-request? req)
(invalid-value-exception req x)
(new-continue-handler continue-handler continue-executor ssl?)
(pipeline-builder handler
pipeline-transform
{:keys [executor rejected-handler error-handler
request-buffer-size max-initial-line-length
max-header-size max-chunk-size raw-stream? ssl?
compression? compression-level idle-timeout
continue-handler continue-executor]
:or {request-buffer-size 16384
max-initial-line-length 8192
max-header-size 8192
max-chunk-size 16384
compression? false
idle-timeout 0
error-handler error-response}})
(raw-ring-handler ssl?
handler
rejected-handler
error-handler
executor
buffer-capacity)
(reject-invalid-request ctx req)
(rfc-1123-date-string)
(ring-handler ssl?
handler
rejected-handler
error-handler
executor
buffer-capacity)
(send-response ctx req keep-alive? ssl? error-handler rsp)
(send-websocket-request-expected! ch ssl?)
(start-server handler
{:keys [port socket-address executor bootstrap-transform
pipeline-transform ssl-context manual-ssl?
shutdown-executor? epoll? compression? continue-handler
continue-executor]
:or {bootstrap-transform identity
pipeline-transform identity
shutdown-executor? true
epoll? false
compression? false}
:as options})
(websocket-server-handler raw-stream? ch handshaker)
(websocket-server-handler raw-stream? ch handshaker heartbeats)
(websocket-upgrade-request? req)
Returns true
if given request is an attempt to upgrade to websockets
Returns `true` if given request is an attempt to upgrade to websockets
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close