WaServer constructor
WaServer({
- required WaConfigs configs,
- Future<
WebRequest> onRequest(- WebRequest rq
Creates an instance of WaServer with the specified WaConfigs and an optional onRequest function.
The configs parameter is required and provides the configuration for the server.
The onRequest parameter, if provided, allows customization of the WebRequest before handling.
Implementation
WaServer({
required WaConfigs configs,
this.onRequest,
}) {
WaServer.config = configs;
}