-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Labels
Description
i wanna write a file download server.
as Response code as following
return Response(
200,
body: File(file.path!).openRead(),
headers: headers,
);
as u see, i send file as stream for return;
but, i has a proplem, on browser download large file , if user cancel download process, the file has never be closed!
so, how to get the socket error for close the file stream?
2shrestha22