| Class | Thin::Connection |
| In: |
lib/thin/connection.rb
|
| Parent: | EventMachine::Connection |
Connection between the server and client. This class is instanciated by EventMachine on each new connection that is opened.
| CONTENT_LENGTH | = | 'Content-Length'.freeze | ||
| TRANSFER_ENCODING | = | 'Transfer-Encoding'.freeze | ||
| CHUNKED_REGEXP | = | /\bchunked\b/i.freeze | ||
| AsyncResponse | = | [-1, {}, []].freeze | This is a template async response. N.B. Can‘t use string for body on 1.9 |
| app | [RW] | Rack application (adapter) served by this connection. |
| backend | [RW] | Backend to the server |
| request | [RW] | Current request served by the connection |
| response | [RW] | Next response sent through the connection |
| threaded | [W] | Calling the application in a threaded allowing concurrent processing of requests. |
Does request and response cleanup (closes open IO streams and deletes created temporary files). Re-initializes response and request if client supports persistent connection.
true if app.call will be called inside a thread. You can set all requests as threaded setting Connection#threaded=true or on a per-request case returning true in app.deferred?.
Called when the connection is unbinded from the socket and can no longer be used to process requests.