Liking cljdoc? Tell your friends :D

aleph.http.server


date-header-valueclj

(date-header-value ctx)
source

date-valueclj

source

default-accept-responseclj

source

default-expectation-failed-responseclj

source

error-responseclj

(error-response e)
source

exception-handlerclj

(exception-handler ctx ex)
source

handle-requestclj

(handle-request ctx
                ssl?
                handler
                rejected-handler
                executor
                req
                previous-response
                body
                keep-alive?)
source

initialize-websocket-handlerclj

(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})
source

invalid-request?clj

(invalid-request? req)
source

invalid-value-responseclj

(invalid-value-response req x)
source

new-continue-handlerclj

(new-continue-handler continue-handler continue-executor ssl?)
source

pipeline-builderclj

(pipeline-builder handler
                  pipeline-transform
                  {:keys [executor rejected-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}})
source

raw-ring-handlerclj

(raw-ring-handler ssl? handler rejected-handler executor buffer-capacity)
source

reject-invalid-requestclj

(reject-invalid-request ctx req)
source

rfc-1123-date-stringclj

(rfc-1123-date-string)
source

ring-handlerclj

(ring-handler ssl? handler rejected-handler executor buffer-capacity)
source

send-responseclj

(send-response ctx keep-alive? ssl? rsp)
source

send-websocket-request-expected!clj

(send-websocket-request-expected! ch ssl?)
source

start-serverclj

(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})
source

websocket-server-handlerclj

(websocket-server-handler raw-stream? ch handshaker)
(websocket-server-handler raw-stream? ch handshaker heartbeats)
source

websocket-upgrade-request?clj

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

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close