send method
void
send(
- dynamic data
Implementation
void send(dynamic data) async {
if (data is Map || data is Object) {
response.headers.set('Content-type', 'application/json; charset=utf-8');
}
response.writeln(_jsonEncoder.convert(data));
await close();
}