server library
Library that exposes the API for the server
Classes
- DartnessApplicationOptions
- DartnessInterceptor
- DartnessInterceptor is an interface in order to handle the request before it is executed and handle the response after the request is executed.
- DartnessMiddleware
- DartnessInterceptor is an interface in order to handle the request before it is executed this can be helpful if you want to log the request or do something else before the request is executed.
- DartnessPipeline
-
A helper that makes it easy to compose a set of DartnessMiddleware, DartnessMiddleware and a
Handler
. - DartnessRequest
- A http request class that is used in the Dartness framework
- DartnessResponse
- A http response class that is used in the Dartness framework
- DartnessServer
- An interface that defines the methods that a server must implement.
- DefaultDartnessPipeline
-
Default implementation of DartnessPipeline that uses shelf
Pipeline
in order to provide an efficient way of create DartnessMiddleware and DartnessInterceptor. - DefaultDartnessServer
- A server that delivers content, such as web pages, using the HTTP protocol by HttpServer.
- LogRequestsInterceptor
- Middleware which prints the time of the request, the elapsed time for the inner handlers, the response's status code and the request URI.