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

UNICORN_VERSION
(Not documented)
DEFAULT_HOST
(Not documented)
DEFAULT_PORT
(Not documented)
DEFAULT_LISTEN
(Not documented)
CHUNK_SIZE

The basic max request size we’ll try to read.

MAX_BODY

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

ERROR_400_RESPONSE

common errors we’ll send back

ERROR_500_RESPONSE
(Not documented)
EXPECT_100_RESPONSE
(Not documented)
REMOTE_ADDR

A frozen format for this is about 15% faster

RACK_INPUT
(Not documented)
HTTP_EXPECT
(Not documented)

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.