FinchApp constructor

FinchApp({
  1. required FinchConfigs configs,
  2. Future<Request> onRequest(
    1. Request rq
    )?,
})

Creates an instance of FinchApp with the specified FinchConfigs 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 Request before handling.

Implementation

FinchApp({
  required FinchConfigs configs,
  this.onRequest,
}) {
  FinchApp.config = configs;
  debuggerInit();
}