Module: Falcon::Environment::Application
Overview
Provides an environment for hosting a web application that uses TLS.
Instance Method Summary collapse
-
#count ⇒ Object
Number of instances to start.
-
#endpoint ⇒ Object
The endpoint that will be used for communicating with the application server.
-
#ipc_path ⇒ Object
The IPC path to use for communication with the application.
-
#middleware ⇒ Object
The middleware stack for the application.
-
#protocol ⇒ Object
The protocol to use to communicate with the application.
-
#scheme ⇒ Object
The scheme to use to communicate with the application.
Methods included from Server
#authority, #cache, #client_endpoint, #container_options, #preload, #service_class, #timeout, #url, #verbose
Instance Method Details
#count ⇒ Object
Number of instances to start.
55 56 57 |
# File 'lib/falcon/environment/application.rb', line 55 def count nil end |
#endpoint ⇒ Object
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: ) end |
#ipc_path ⇒ Object
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.("application.ipc", root) end |
#middleware ⇒ Object
The middleware stack for the application.
18 19 20 |
# File 'lib/falcon/environment/application.rb', line 18 def middleware ::Protocol::HTTP::Middleware::HelloWorld end |
#protocol ⇒ Object
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 |
#scheme ⇒ Object
The scheme to use to communicate with the application.
24 25 26 |
# File 'lib/falcon/environment/application.rb', line 24 def scheme 'https' end |