spark_rest library

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 base of a Spark server
Context
Contains all the environment variables of the application
Endpoint
A class that responds to a single Uri and a single Method
Method
The class that contains all HTTP methods
MethodRouter
Convenience class that can dispatch HTTP methods
Middleware<T>
A reusable class that injects functionality to determined endpoints
Plugin
Used to inject functionality to a Spark application
Request
A convenience class that contains an HTTP request
Response
A convenience class that contains an HTTP response
UriRouter
Convenience class that can dispatch Uris

Functions

boot({required Application application, int port = 8080}) Future
Function used to run a Spark server