Class | Thin::Response |
In: |
lib/thin/response.rb
|
Parent: | Object |
A response sent to the client.
CONNECTION | = | 'Connection'.freeze | ||
CLOSE | = | 'close'.freeze | ||
KEEP_ALIVE | = | 'keep-alive'.freeze | ||
SERVER | = | 'Server'.freeze | ||
CONTENT_LENGTH | = | 'Content-Length'.freeze | ||
PERSISTENT_STATUSES | = | [100, 101].freeze | ||
ERROR | = | [500, {'Content-Type' => 'text/plain'}, ['Internal server error']].freeze | Error Responses | |
PERSISTENT_ERROR | = | [500, {'Content-Type' => 'text/plain', 'Connection' => 'keep-alive', 'Content-Length' => "21"}, ['Internal server error']].freeze | ||
BAD_REQUEST | = | [400, {'Content-Type' => 'text/plain'}, ['Bad Request']].freeze |
Ruby 1.8 implementation. Respects Rack specs.