finish method
Method that is invoked at the end of creating the HTTP response.
The framework automatically invokes this method when it creates a HTTP response from the Request object returned by the application's request handler or exception handler.
The implementation in the base Request class does nothing. But an application could create their own subclass (usually a subclass of ResponseBuffered or ResponseStream) and that implement its own finish method. A typical use of a subclass is to generate HTML pages for an application: the subclass's constructor could produce the common HTML headers and the subclass's finish method could produce the common HTML footers.
Implementation
Future finish(Request req) async {
// do nothing
}