sendStaticFile function
Sends file, a file of Route.staticFiles with length bytes (from
its stat), like a File that a controller returns. It does not ask
the disk for the size again.
Implementation
void sendStaticFile(
HttpRequest request,
File file,
int length, [
NativeFile? opened,
]) {
request.response.headers.set(_noSniffHeader, 'nosniff');
_pipe(request, _sendFile(file, request, length, opened));
}