dia library Null safety

Dia - simple KoaJS style library for create http/https servers on Dart.

Classes

App<T extends Context>
Dia application class The web server listens to the http / https port and applies the middleware to the received requests
Context
Default Dia Context This object extended base HttpRequest and HttpResponse object for easy access to they fields

Typedefs

Middleware<T extends Context> = Future<void> Function(T ctx, FutureOr<void> next())
Middleware, it is an asynchronous function that accepts a Context and a future for the next function.

Exceptions / Errors

HttpError
HttpError class Contain information about http error status - response code message - text message of code exception - Exception objects thrown in the case of a program failure stackTrace - StackTrace by all stack trace objects