Liking cljdoc? Tell your friends :D

server-lib.core


accept-web-socket-request-subprocessclj

(accept-web-socket-request-subprocess routing-fn
                                      client-socket
                                      header-map-with-body)

Work with established websocket connection

Work with established websocket connection
sourceraw docstring

cached-filesclj

source

client-socketsclj

source

decode-messageclj

(decode-message encoded-bytes key-array)

Decode message sent through websocket

https://tools.ietf.org/html/rfc6455#section-5.2

Decode message sent through websocket

https://tools.ietf.org/html/rfc6455#section-5.2
sourceraw docstring

encode-messageclj

(encode-message message & [first-byte user-agent])

Encoding message to send it through websocket

https://tools.ietf.org/html/rfc6455#section-5.2

Encoding message to send it through websocket

https://tools.ietf.org/html/rfc6455#section-5.2
sourceraw docstring

get-rangesclj

(get-ranges request)

Returns ranges from request header

Returns ranges from request header
sourceraw docstring

keep-alive-message-periodclj

source

main-threadclj

source

md5-checksum-fnclj

(md5-checksum-fn ary)

Generate checksum of read file

Generate checksum of read file
sourceraw docstring

parse-bodyclj

(parse-body request-body content-type)

Read entity-body from request, convert from string to clojure data

Read entity-body from request, convert from string to clojure data
sourceraw docstring

port-aclj

source

powclj

(pow value)

Square of value

Square of value
sourceraw docstring

public-dir-aclj

source

read-fileclj

(read-file file-path extension request & [is-absolute-path])

Read file and recognize it's mime type

Read file and recognize it's mime type
sourceraw docstring

read-till-fin-is-oneclj

(read-till-fin-is-one input-stream user-agent)

Read from input stream all messages till FIN bit has value 1 (one)

Read from input stream all messages till FIN bit has value 1 (one)
sourceraw docstring

runningclj

source

server-socketclj

source

start-serverclj

(start-server routing-fn
              &
              [default-response-headers port https-conf public-dir])

Starts listening on opened server socket

Starts listening on opened server socket
sourceraw docstring

stop-serverclj

(stop-server)

Stop server

Stop server
sourceraw docstring

thread-poolclj

source

thread-pool-sizeclj

source

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

× close