| Class | Thin::Request |
| In: |
lib/thin/request.rb
|
| Parent: | Object |
A request sent by the client to the server.
| MAX_BODY | = | 1024 * (80 + 32) | Maximum request body size before it is moved out of memory and into a tempfile for reading. | |
| BODY_TMPFILE | = | 'thin-body'.freeze | ||
| MAX_HEADER | = | 1024 * (80 + 32) | ||
| SERVER_SOFTWARE | = | 'SERVER_SOFTWARE'.freeze | Freeze some HTTP header names & values | |
| SERVER_NAME | = | 'SERVER_NAME'.freeze | ||
| LOCALHOST | = | 'localhost'.freeze | ||
| HTTP_VERSION | = | 'HTTP_VERSION'.freeze | ||
| HTTP_1_0 | = | 'HTTP/1.0'.freeze | ||
| REMOTE_ADDR | = | 'REMOTE_ADDR'.freeze | ||
| FORWARDED_FOR | = | 'HTTP_X_FORWARDED_FOR'.freeze | ||
| CONTENT_LENGTH | = | 'CONTENT_LENGTH'.freeze | ||
| CONNECTION | = | 'HTTP_CONNECTION'.freeze | ||
| KEEP_ALIVE_REGEXP | = | /\bkeep-alive\b/i.freeze | ||
| CLOSE_REGEXP | = | /\bclose\b/i.freeze | ||
| RACK_INPUT | = | 'rack.input'.freeze | Freeze some Rack header names | |
| RACK_VERSION | = | 'rack.version'.freeze | ||
| RACK_ERRORS | = | 'rack.errors'.freeze | ||
| RACK_MULTITHREAD | = | 'rack.multithread'.freeze | ||
| RACK_MULTIPROCESS | = | 'rack.multiprocess'.freeze | ||
| RACK_RUN_ONCE | = | 'rack.run_once'.freeze | ||
| ASYNC_CALLBACK | = | 'async.callback'.freeze | ||
| ASYNC_CLOSE | = | 'async.close'.freeze |
| body | [R] | Request body |
| data | [R] | Unparsed data of the request |
| env | [R] | CGI-like request environment variables |
Parse a chunk of data into the request environment Raises a InvalidRequest if invalid. Returns true if the parsing is complete.