Class: N::App::Server

Inherits:
Server show all
Includes:
ServerMixin
Defined in:
lib/n/app/server.rb

Overview

AppServer

The Application Server. Handles dynamic requests in a web application. Dont keepalive (or use a VERY SMALL keepalive). Typically this server is used along with a standars http server that handles other resources.

Instance Attribute Summary

Attributes inherited from Server

#address, #port

Attributes inherited from N::Application

#create_time, #daemonized, #description, #name, #pid, #pidfile, #status, #title, #version

Instance Method Summary collapse

Methods included from ServerMixin

#initialize_app

Methods inherited from Server

#handle, #run, #start, #stop

Methods inherited from N::Application

#daemon_pid, #daemonize, #parse_arguments, #restart, #run, #start, #stop

Constructor Details

#initialize(name = "AppServer") ⇒ Server

Returns a new instance of Server.



47
48
49
50
# File 'lib/n/app/server.rb', line 47

def initialize(name = "AppServer")
	super
	initialize_app()
end