testing library

Classes

RequestHandler
Defines the interface for handling HTTP requests.

Functions

serverTest(String description, TestCallback callback, {required RequestHandler handler, TransportMode transportMode = TransportMode.inMemory, Timeout? timeout, Object? skip, Object? tags, Map<String, dynamic>? onPlatform, int? retry}) → void
Creates a test that uses an TestClient to test HTTP endpoints.

Typedefs

TestCallback = Future<void> Function(TestClient client, RequestHandler handler)
Callback type for test functions that use TestClient