Class: PhusionPassenger::Rack::RequestHandler

Inherits:
AbstractRequestHandler show all
Defined in:
lib/phusion_passenger/rack/request_handler.rb

Overview

A request handler for Rack applications.

Constant Summary

RACK_VERSION =

Constants which exist to relieve Ruby's garbage collector.

"rack.version"
RACK_VERSION_VALUE =
[1, 0]
RACK_INPUT =
"rack.input"
RACK_ERRORS =
"rack.errors"
RACK_MULTITHREAD =
"rack.multithread"
RACK_MULTIPROCESS =
"rack.multiprocess"
RACK_RUN_ONCE =
"rack.run_once"
RACK_URL_SCHEME =
"rack.url_scheme"
SCRIPT_NAME =

:nodoc: :nodoc: :nodoc: :nodoc: :nodoc: :nodoc: :nodoc: :nodoc: :nodoc:

"SCRIPT_NAME"
CONTENT_LENGTH =
"CONTENT_LENGTH"
CONTENT_TYPE =
"CONTENT_TYPE"
HTTP_CONTENT_LENGTH =
"HTTP_CONTENT_LENGTH"
HTTP_CONTENT_TYPE =

:nodoc: :nodoc: :nodoc: :nodoc:

"HTTP_CONTENT_TYPE"
HTTPS =
"HTTPS"
HTTPS_DOWNCASE =
"https"
HTTP =
"http"
YES =
"yes"
ON =
"on"
ONE =
"1"
CRLF =
"\r\n"
NEWLINE =

:nodoc: :nodoc: :nodoc: :nodoc: :nodoc: :nodoc: :nodoc: :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

Constants included from Utils

Utils::FileSystemWatcher, Utils::NULL

Instance Attribute Summary

Attributes inherited from AbstractRequestHandler

#connect_password, #iterations, #memory_limit, #processed_requests, #server_sockets, #soft_termination_linger_time

Instance Method Summary collapse

Methods inherited from AbstractRequestHandler

#cleanup, #main_loop, #main_loop_running?, #soft_shutdown, #start_main_loop_thread

Methods included from Utils

#split_by_null_into_hash

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, options = {})
	super(owner_pipe, options)
	@app = app
end