close method
Closes the response body.
This should be called when the body is no longer needed in order to free up underlying resources (e.g. sockets).
Implementation
@override
Future<void> close() async {
// Detach the socket and then destroy it in both directions.
(await detachSocket()).destroy();
}