classAkkaHttpModule extends Module with Initializable with Runnable with Disposable
Module providing HTTP(S) server functionality, based on the Akka HTTP library.
Configuration example
akkamo.akkaHttp = {
// complete configuration with several name aliases
name1 = {
aliases = ["alias1", "alias2"]
port = 9000// port, not mandatory
protocol = "http"// http, https, ...
host = "localhost"// host, default localhost
akkaAlias = "alias"// not required, default is used if exists
requestLogLevel = "info"// defines level for request level logging. Default "off" means no logging
RequestLogContentLength = 1024// defines max content length in request log, default 0 to disable content logging
},
// configuration registered as default (only one instance is allowed)
name2 = {
default = true
protocol = "http"// http, https, ...
}
}
In example code above, working example of module configuration is shown. For each block inside
the akkamo.akkaHttp, instance of RouteRegistry is registered to the Akkamo context
both using its name (e.g. name1) and aliases (e.g. alias1) if provided. Injected
instance of RouteRegistry can be then used to register own Akka HTTP routes.
See also
http://doc.akka.io/docs/akka/current/scala/http/
RouteRegistry
Linear Supertypes
Disposable, Runnable, Initializable, Module, AnyRef, Any
true if initialization is complete.
In case of incomplete initialization system will call this method again.
Incomplete initialization mean That component is not able to find all dependencies.
Module providing HTTP(S) server functionality, based on the Akka HTTP library.
Configuration example
In example code above, working example of module configuration is shown. For each block inside the
akkamo.akkaHttp
, instance of RouteRegistry is registered to the Akkamo context both using its name (e.g. name1) and aliases (e.g. alias1) if provided. Injected instance of RouteRegistry can be then used to register own Akka HTTP routes.http://doc.akka.io/docs/akka/current/scala/http/
RouteRegistry