spark_rest library Null safety

A blazing-fast RESTful API for Dart

This package was created after the deprecation of Aqueduct. It is designed to be more developer-friendly

Classes

Endpoint
A single endpoint in the server
Method
The class that contains all HTTP methods [...]
Middleware<T>
The base class for request and response middlewares [...]
Request
An easy-to-use container for requests
Response
An easy-to-use container for responses

Functions

sparkBoot({int port = 8080, Map<String, Middleware<Request>> requestMiddlewares = const {}, Map<String, Middleware<Response>> responseMiddlewares = const {}, List<Endpoint> endpoints = const [], List<Plugin> plugins = const []}) Future
Function used to run a Spark server [...]