module Application
Provides an environment for hosting a web application that uses TLS.
Definitions
def middleware
The middleware stack for the application.
Signature
-
returns
Protocol::HTTP::Middleware
Implementation
def middleware
::Protocol::HTTP::Middleware::HelloWorld
end
def scheme
The scheme to use to communicate with the application.
Signature
-
returns
String
Implementation
def scheme
"https"
end
def protocol
The protocol to use to communicate with the application.
Typically one of Async::HTTP::Protocol::HTTP1
or Async::HTTP::Protocl::HTTP2
.
Signature
-
returns
Async::HTTP::Protocol
Implementation
def protocol
Async::HTTP::Protocol::HTTP2
end
def ipc_path
The IPC path to use for communication with the application.
Signature
-
returns
String
Implementation
def ipc_path
::File.expand_path("application.ipc", root)
end
def endpoint
The endpoint that will be used for communicating with the application server.
Signature
-
returns
::Falcon::ProxyEndpoint
Implementation
def endpoint
::Falcon::ProxyEndpoint.unix(ipc_path,
protocol: protocol,
scheme: scheme,
authority: authority
)
end