cljs.repl.server

since v0.0-1503

connection - function
(connection)
Promise to return a connection when one is available. If no connection is
available put the promise into a FIFO queue to get the next available
connection.

connq - var

dispatch-on - function
(dispatch-on method pred handler)
(dispatch-on method {:as m})
Registers a handler to be dispatched based on a request method and a
predicate.

pred should be a function that accepts an options map, a connection,
and a request map and returns a boolean value based on whether or not
that request should be dispatched to the related handler.

gzip - function
(gzip bytes)

handlers - var

lock - var

parse-file-parts - function
(parse-file-parts file)

parse-headers - function
(parse-headers header-lines)
Parse the headers of an HTTP POST request.

promiseq - var

read-get - function
(read-get line rdr)

read-headers - function
(read-headers rdr)

read-post - function
(read-post line rdr)

read-request - function
(read-request rdr)

send-404 - function
(send-404 conn path)

send-and-close - function
(send-and-close conn status form)
(send-and-close conn status form content-type)
(send-and-close conn status form content-type encoding)
(send-and-close conn status form content-type encoding gzip?)
Use the passed connection to send a form to the browser. Send a
proper HTTP response.

set-connection - function
(set-connection conn)
Given a new available connection, poll the promise queue for and deliver
the connection. Otherwise put the connection into a FIFO queue.

start - function
(start opts)
Start the server on the specified port.

state - dynamic var

stop - function
(stop)