http_test_server library
Classes
- RawServerEvent
- A server event that allows handling the request directly.
- ServerEvent
- A base class to define a handler for a request comes to server.
- StandardServerEvent
- A server event that responds with a specified status code and a String body.
- TestServer
- A class that creates an HTTP server.
Typedefs
-
RequestHandler
= Future<
HttpResponse> Function(HttpRequest request) - The type of handler function of a RawServerEvent.
-
RequestHandlerRespondsString
= Future<
String> Function(HttpRequest request) - The type of handler function of a StandardServerEvent.
- RequestMatcher = bool Function(HttpRequest request)
- The function type to match a request with an event.