Yes, it can (although this is not its main use case).
From Google Plus, February 28, 2013 :
Finally, I managed to get Dart to work in Apache CGI! I did not find any information about this, so I tried it myself. Here is how I did it (Apache 2.2 and Ubuntu) ...
From news.dartlang.org, May 26, 2012
mod_dart: Dart, Apache! PHP, Perl, Python , Dart - - Apache.
" ", , Dart -, Apache.
"..."
, Dart -, Dart node.js, dart . -, :
main() {
var server = new HttpServer();
server.addRequestHandler(
(req) => true, // matcher - should this function handle this request?
(req, res) { // handler - what should happen when this request matches?
res.outputStream.write("${req.method}: ${req.path}"); // eg: GET: /foo
res.outputStream.close();
});
server.listen('127.0.0.1', 8080);