(Since version 2.6.14) Use new AkkaHttpServer(Context) instead
Play's configuration for the Akka HTTP server.
Play's configuration for the Akka HTTP server. Initialized by a call to createAkkaHttpConfig().
Note that the rest of the ActorSystem outside Akka HTTP is initialized by the configuration in config.
Creates the configuration used to initialize the Akka HTTP subsystem.
Creates the configuration used to initialize the Akka HTTP subsystem. By default this uses the ActorSystem's configuration, with an additional setting patched in to enable or disable HTTP/2.
Called by Play when creating its Akka HTTP parser settings.
Called by Play when creating its Akka HTTP parser settings. Result stored in parserSettings.
Create Akka HTTP settings for a given port binding.
Create Akka HTTP settings for a given port binding.
Called by Play when binding a handler to a server port. Will be called once per port. Called by the createServerBinding() method.
Returns the HTTP port of the server.
Returns the HTTP port of the server.
This is useful when the port number has been automatically selected (by setting a port number of 0).
The HTTP port the server is bound to, if the HTTP connector is enabled.
Returns the HTTPS port of the server.
Returns the HTTPS port of the server.
This is useful when the port number has been automatically selected (by setting a port number of 0).
The HTTPS port the server is bound to, if the HTTPS connector is enabled.
Play's parser settings for Akka HTTP.
Play's parser settings for Akka HTTP. Initialized by a call to createParserSettings().
(Since version 2.6.10) This method is an internal API and should not be public
Try to get the handler for a request and return it as a Right
.
Try to get the handler for a request and return it as a Right
. If we
can't get the handler for some reason then return a result immediately
as a Left
. Reasons to return a Left
value:
- If there's a "web command" installed that intercepts the request.
- If we fail to get the Application
from the applicationProvider
,
i.e. if there's an error loading the application.
- If an exception is thrown.
NOTE: This will use the ApplicationProvider of the server to get the application instance.
Use Server.getHandlerFor(request, provider)
to pass a specific application instance
(Since version 2.6.13) Use Server.getHandlerFor instead
Starts a Play server using Akka HTTP.