TargetConfiguration class abstract
The base configuration of a TargetServer instance.
This class is used to configure a TargetServer instance. You can extend this class to configure your server with a custom configuration:
class Configuration extends TargetConfiguration {
@override
HttpConfiguration get http => HttpConfiguration(port: 1234);
}
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- http → HttpConfiguration
-
The HTTP configuration for the server.
no setter
- logLevel → LogLevel
-
The current logging level for all Target logs.
Defaults to LogLevel.info.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staticDirectory → String?
-
The directory where static files are served from.
no setter
- ws → WebSocketConfiguration
-
The WebSocket configuration for the server.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notFoundHandler(
Request request) → FutureOr< Response> - The default handler for 404 not found requests.
-
serverErrorHandler(
Request request, Object error, StackTrace stackTrace) → FutureOr< Response> - The default handler for 500 server errors.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited