close method

Future<void> close({
  1. bool force = false,
})

Stops accepting requests and closes the server.

force closes the connections that are still open instead of waiting for their responses to end.

Implementation

Future<void> close({bool force = false}) => _server.close(force: force);