(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.
(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.
(parse-headers header-lines)Parse the headers of an HTTP POST request.
(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 conn)Given a new available connection, poll the promise queue for and deliver the connection. Otherwise put the connection into a FIFO queue.