NettyServer
Attributes
- Graph
-
- Supertypes
-
trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializabletrait HttpServertrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Await and block until the server terminates. If the server is already terminated (via close()), this method returns immediately.
Await and block until the server terminates. If the server is already terminated (via close()), this method returns immediately.
Attributes
- Definition Classes
-
HttpServer
Return the local server address in (host):(port) format. e.g., localhost:8080. This method can be used for creating a new Http client for the server. For example:
Return the local server address in (host):(port) format. e.g., localhost:8080. This method can be used for creating a new Http client for the server. For example:
Netty.server.withRouter(router).start { server =>
Using.resource(Http.client.newSyncClient(server.localAddress)) { client =>
val resp = client.send(Http.GET("/hello"))
}
}
Attributes
- Definition Classes
-
HttpServer
Stop the server
Stop the server
Attributes
- Definition Classes
-
HttpServer
Inherited methods
Stop the server. When using Airframe DI, this method will be called automatically.
Stop the server. When using Airframe DI, this method will be called automatically.
Attributes
- Definition Classes
-
HttpServer -> AutoCloseable
- Inherited from:
- HttpServer
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods