WaServer constructor

WaServer({
  1. required WaConfigs configs,
  2. Future<WebRequest> onRequest(
    1. 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;
}