Module: Falcon::Environment::Application

Includes:
Server
Included in:
Rack
Defined in:
lib/falcon/environment/application.rb

Overview

Provides an environment for hosting a web application that uses TLS.

Instance Method Summary collapse

Methods included from Server

#authority, #cache, #client_endpoint, #container_options, #preload, #service_class, #timeout, #url, #verbose

Instance Method Details

#countObject

Number of instances to start.



55
56
57
# File 'lib/falcon/environment/application.rb', line 55

def count
	nil
end

#endpointObject

The endpoint that will be used for communicating with the application server.



45
46
47
48
49
50
51
# File 'lib/falcon/environment/application.rb', line 45

def endpoint
	::Falcon::ProxyEndpoint.unix(ipc_path,
		protocol: protocol,
		scheme: scheme,
		authority: authority
	)
end

#ipc_pathObject

The IPC path to use for communication with the application.



39
40
41
# File 'lib/falcon/environment/application.rb', line 39

def ipc_path
	::File.expand_path("application.ipc", root)
end

#middlewareObject

The middleware stack for the application.



18
19
20
# File 'lib/falcon/environment/application.rb', line 18

def middleware
	::Protocol::HTTP::Middleware::HelloWorld
end

#protocolObject

The protocol to use to communicate with the application.

Typically one of Async::HTTP::Protocol::HTTP1 or Async::HTTP::Protocl::HTTP2.



33
34
35
# File 'lib/falcon/environment/application.rb', line 33

def protocol
	Async::HTTP::Protocol::HTTP2
end

#schemeObject

The scheme to use to communicate with the application.



24
25
26
# File 'lib/falcon/environment/application.rb', line 24

def scheme
	'https'
end