module Unicorn::Const

Frequently used constants when constructing requests or responses. Many times the constant just refers to a string with the same contents. Using these constants gave about a 3% to 10% performance improvement over using the strings directly. Symbols did not really improve things much compared to constants.

Constants

CHUNK_SIZE

The basic request body size we’ll try to read at once (16 kilobytes).

DEFAULT_HOST

default TCP listen host address (0.0.0.0, all interfaces)

DEFAULT_LISTEN

default TCP listen address and port (0.0.0.0:8080)

DEFAULT_PORT

default TCP listen port (8080)

MAX_BODY

Maximum request body size before it is moved out of memory and into a temporary file for reading (112 kilobytes). This is the default value of client_body_buffer_size.

UNICORN_VERSION