send method

void send(
  1. 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();
}