HyperioAzkadev constructor
HyperioAzkadev({
- String pathPrefix = "",
- HyperioAzkadevLogType hyperioLogType = HyperioAzkadevLogType.info,
- int simultaneousProcessing = 1000000000,
- HyperioAzkadevRouteOnNotFoundFunction? onNotFound,
- HyperioAzkadevRouteOnErrorFunction? onError,
Creates a new HyperioAzkadevNative application.
The default logWriter can be tuned by changing the logLevel:
- HyperioAzkadevLogType.error: prints errors
- HyperioAzkadevLogType.warn: prints errors and warning
- HyperioAzkadevLogType.info: prints errors, warning and requests
- HyperioAzkadevLogType.debug: prints errors, warning, requests and further details
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();
}