HyperioAzkadev constructor

HyperioAzkadev({
  1. String pathPrefix = "",
  2. HyperioAzkadevLogType hyperioLogType = HyperioAzkadevLogType.info,
  3. int simultaneousProcessing = 1000000000,
  4. HyperioAzkadevRouteOnNotFoundFunction? onNotFound,
  5. HyperioAzkadevRouteOnErrorFunction? onError,
})

Creates a new HyperioAzkadevNative application.

The default logWriter can be tuned by changing the logLevel:

Note: Changing the logLevel only effects the default logWriter.

simultaneousProcessing is the number of requests doing work at any one time. If the amount of unprocessed incoming requests exceed this number, the requests will be queued.

Implementation

HyperioAzkadev({
  super.pathPrefix,
  super.hyperioLogType,
  super.simultaneousProcessing,
  super.onNotFound,
  super.onError,
}) : requestQueue = Queue(parallel: simultaneousProcessing) {
  onError = null;
  ensureInitialized();
}