Class: PhusionPassenger::Rack::RequestHandler
- Inherits:
-
AbstractRequestHandler
- Object
- AbstractRequestHandler
- PhusionPassenger::Rack::RequestHandler
- Defined in:
- lib/phusion_passenger/rack/request_handler.rb
Overview
A request handler for Rack applications.
Constant Summary collapse
- RACK_VERSION =
Constants which exist to relieve Ruby’s garbage collector.
"rack.version"
- RACK_VERSION_VALUE =
:nodoc:
[1, 0]
- RACK_INPUT =
:nodoc:
"rack.input"
- RACK_ERRORS =
:nodoc:
"rack.errors"
- RACK_MULTITHREAD =
:nodoc:
"rack.multithread"
- RACK_MULTIPROCESS =
:nodoc:
"rack.multiprocess"
- RACK_RUN_ONCE =
:nodoc:
"rack.run_once"
- RACK_URL_SCHEME =
:nodoc:
"rack.url_scheme"
- SCRIPT_NAME =
:nodoc:
"SCRIPT_NAME"
- CONTENT_LENGTH =
:nodoc:
"CONTENT_LENGTH"
- CONTENT_TYPE =
:nodoc:
"CONTENT_TYPE"
- HTTP_CONTENT_LENGTH =
:nodoc:
"HTTP_CONTENT_LENGTH"
- HTTP_CONTENT_TYPE =
:nodoc:
"HTTP_CONTENT_TYPE"
- HTTPS =
:nodoc:
"HTTPS"
- HTTPS_DOWNCASE =
:nodoc:
"https"
- HTTP =
:nodoc:
"http"
- YES =
:nodoc:
"yes"
- ON =
:nodoc:
"on"
- ONE =
:nodoc:
"1"
- CRLF =
:nodoc:
"\r\n"
- NEWLINE =
:nodoc:
"\n"
- STATUS =
:nodoc:
"Status: "
- X_POWERED_BY =
:nodoc:
"X-Powered-By: "
- NAME_VALUE_SEPARATOR =
:nodoc:
": "
Constants inherited from AbstractRequestHandler
AbstractRequestHandler::BACKLOG_SIZE, AbstractRequestHandler::DEFAULT, AbstractRequestHandler::GC_SUPPORTS_CLEAR_STATS, AbstractRequestHandler::GC_SUPPORTS_TIME, AbstractRequestHandler::HARD_TERMINATION_SIGNAL, AbstractRequestHandler::IGNORE, AbstractRequestHandler::MAX_HEADER_SIZE, AbstractRequestHandler::OBJECT_SPACE_SUPPORTS_ALLOCATED_OBJECTS, AbstractRequestHandler::OBJECT_SPACE_SUPPORTS_COUNT_OBJECTS, AbstractRequestHandler::OBJECT_SPACE_SUPPORTS_LIVE_OBJECTS, AbstractRequestHandler::PASSENGER_CONNECT_PASSWORD, AbstractRequestHandler::PING, AbstractRequestHandler::REQUEST_METHOD, AbstractRequestHandler::SOFT_TERMINATION_SIGNAL
Instance Attribute Summary
Attributes inherited from AbstractRequestHandler
#connect_password, #iterations, #memory_limit, #processed_requests, #server_sockets, #soft_termination_linger_time
Instance Method Summary collapse
-
#initialize(owner_pipe, app, options = {}) ⇒ RequestHandler
constructor
app
is the Rack application object.
Methods inherited from AbstractRequestHandler
#cleanup, #main_loop, #main_loop_running?, #soft_shutdown, #start_main_loop_thread
Methods included from Utils
Methods included from DebugLogging
_log_device, debug, error, included, log_file=, log_level=, stderr_evaluator=, trace, warn
Constructor Details
#initialize(owner_pipe, app, options = {}) ⇒ RequestHandler
app
is the Rack application object.
60 61 62 63 |
# File 'lib/phusion_passenger/rack/request_handler.rb', line 60 def initialize(owner_pipe, app, = {}) super(owner_pipe, ) @app = app end |