close method
Stops the server (in serve mode) and closes the HTTP client.
Implementation
Future<void> close() async {
_httpClient?.close(force: true);
await _server?.close(drain: const Duration(seconds: 1));
}
Stops the server (in serve mode) and closes the HTTP client.
Future<void> close() async {
_httpClient?.close(force: true);
await _server?.close(drain: const Duration(seconds: 1));
}