kevmoo / dhttpd

A simple HTTP server that can serve up any directory, built with Dart.
https://pub.dev/packages/dhttpd
BSD 3-Clause "New" or "Revised" License
107 stars 30 forks source link

perhaps consumable as a library as well? #6

Closed devoncarew closed 9 years ago

devoncarew commented 9 years ago

Perhaps make this consumable as a library as well? So, most of the code in lib/, with a small executable (parsing args) in bin/.

devoncarew commented 9 years ago

Here's an api for a similar server:

  MicroServer server = await MicroServer.start(path: 'build/web', port: 8888);
  print('serving ${server.path} from ${server.urlBase}');
  await server.destroy();
sethladd commented 9 years ago

Love it. Will merge as soon as it's mergeable.