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.
The constants are frozen because Hash#[]= when called with a String key dups the String UNLESS the String is frozen. This saves us therefore 2 object allocations when creating the env hash later.
While Puma does try to emulate the CGI/1.2 protocol, it does not use the REMOTE_IDENT, REMOTE_USER, or REMOTE_HOST parameters since those are either a security problem or too taxing on performance.
The basic max request size we’ll try to read.
Indicate that we couldn’t parse the request
The standard empty 404 response for bad requests. Use Error4040Handler for custom stuff.
The standard empty 408 response for requests that timed out.
Indicate that there was an internal error, obviously.
A common header for indicating the server is too busy. Not used yet.
ETag is based on the apache standard of hex mtime-size-inode (inode is 0 on win32)
The default number of seconds to wait until we get the first data for the request
Maximum request body size before it is moved out of memory and into a tempfile for reading.
This is the maximum header that is allowed before a client is booted. The parser detects this, but we’d also like to do this as well.
The default number of seconds for another request within a persistent session.
The original URI requested by the client.
A frozen format for this is about 15% faster
How long to wait when getting some write blocking on the socket when sending data back
Generated with the Darkfish Rdoc Generator 2.