net.http

Functions common to HTTP clients and servers

->params

(->params dx)

Create a param map from a Netty QueryStringDecoder

->request

(->request msg)

Create a request map from a Netty Http Request

continue-response

(continue-response version)

data->response

(data->response {:keys [status headers]} version)

Create a valid HttpResponse from a response map.

epoll?

(epoll?)

Find out if epoll is available on the underlying platform.

http-content

(http-content buf)

int->status

(int->status status)

Get a Netty HttpResponseStatus from a int

last-http-content

Empty Last Http Content

last-http-content?

(last-http-content? msg)

Are we dealing with an instance of LastHttpContent

log-levels

Keyword to level map used as a helper when setting up log handlers.

logging-re

make-boss-group

(make-boss-group {:keys [loop-thread-count disable-epoll]})

Create an event loop group. Try setting up an epoll event loop group unless either instructed not to do so or it is no available.

method->data

Yield a keyword representing an HTTP method.

optimal-client-channel

(optimal-client-channel disable-epoll?)

Figure out which client channel to use

protocol-version

(protocol-version msg)

qs->params

(qs->params qs)

Extract parameters from a x-www-form-urlencoded string

set-log-handler!

(set-log-handler! bootstrap {:keys [logging]})

Add log hander to a bootstrap

set-optimal-server-channel!

(set-optimal-server-channel! bs disable-epoll?)

Add optimal channel to a server bootstrap