return "Grid data formats supported by this server";
}
@Override
public void onService(HServer db, HGrid req, HGridWriter writer) {
HGridBuilder b = new HGridBuilder();
b.addCol("mime");
b.addCol("read");
b.addCol("write");
HGridFormat[] formats = HGridFormat.list();
for (int i = 0; i < formats.length; ++i) {
HGridFormat format = formats[i];
b.addRow(new HVal[] { HStr.make(format.mime), format.reader != null ? HMarker.VAL : null,
format.writer != null ? HMarker.VAL : null, });
}
writeGrid(writer, b.toGrid());
}