dhttpd 0.3.1 copy "dhttpd: ^0.3.1" to clipboard
dhttpd: ^0.3.1 copied to clipboard

outdatedDart 1 only

A static file HTTP server for easy directory serving.

dhttpd #

A simple HTTP server that can serve up any directory, built with Dart. Inspired by python -m SimpleHTTPServer.

Install #

Use the pub global command to install this into your system.

$ pub global activate dhttpd

Use #

If you have modified your PATH, you can run this server from any local directory.

$ dhttpd

Otherwise you can use the pub global command.

$ pub global run dhttpd

Configure #

  • --port - Set the port. Defaults to 8080.
  • --path - Set the path to server. Defaults to cwd.
  • --host - Hostname to listen on. Defaults to localhost.
  • --allow-origin - Value for the 'Access-Control-Allow-Origin' header.
106
likes
20
pub points
82%
popularity

Publisher

verified publisherj832.com

A static file HTTP server for easy directory serving.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

args, shelf_cors, shelf_static

More

Packages that depend on dhttpd