spark_rest library Null safety
A blazing-fast, single instance, sessionless RESTful API for Dart
This package was created after the deprecation of Aqueduct. It is designed to be more developer-friendly
Classes
- Application
- The starting point of a SparkREST application
- Context
- A convenience class that contains all registred objects
- Endpoint
- A class that responds for a single HTTP method and a single HTTP uri [...]
- Method
- The class that contains all HTTP methods
- MethodRouter
- A Map specialized to handle HTTP methods
-
Middleware<
T> - Used to manage requests and responses before and after the endpoint manages them
- Plugin
- Adds custom functionality to an API
- Request
- A convenience class that contains an HTTP request
- Response
- A convenience class that contains an HTTP response
- UriRouter
- A Map specialized to handle Uris
Functions
-
boot(
{required Application application, int port = 8080}) → Future - Function used to run a Spark server
Enums
- MiddlewareAttachType
- Used to know where to attach a middleware