Http-server: Document clearly what is added to ecstatic

Created on 1 Dec 2016  Â·  5Comments  Â·  Source: http-party/http-server

What exactly does this add to ecstatic? As far as I can tell, ecstatic also works as "a simple zero-configuration command-line http server". The only thing I've noticed is that http-server logs requests whereas ecstatic doesn't. Is this just a thin wrapper?

faq

Most helpful comment

@laughinghan you're right that http-server is essentially a wrapper around ecstatic. Ecstatic, however, is designed to be middleware. You can use it in Express or with the internal http directly. http-server, on the other hand, is designed to be a server itself, running from CLI. It also adds some value:

  • No configuration needed, the defaults are designed with the user in mind
  • Ability to use a proxy
  • Logging, including requests and all interfaces (with colors!)
  • Ability to open a browser automatically
  • Serving robots.txt
  • CORS headers
  • More features on the way!

All 5 comments

I see: logging, CORS, robots.txt, and then something about proxies? Is that accurate? Would love to see that documented.

A majority of those are also ecstatic features, is what I'm saying. I'm
wondering which of those are actually provided by this library.

Han

On Thu, Dec 1, 2016 at 2:38 AM, Jannis Redmann notifications@github.com
wrote:

Is this sufficient? https://github.com/indexzero/
http-server#available-options

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/indexzero/http-server/issues/329#issuecomment-264138040,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AANyERUyP9YxGk5RWKyDs6FIjzvWRVPTks5rDqOUgaJpZM4LBEss
.

@laughinghan you're right that http-server is essentially a wrapper around ecstatic. Ecstatic, however, is designed to be middleware. You can use it in Express or with the internal http directly. http-server, on the other hand, is designed to be a server itself, running from CLI. It also adds some value:

  • No configuration needed, the defaults are designed with the user in mind
  • Ability to use a proxy
  • Logging, including requests and all interfaces (with colors!)
  • Ability to open a browser automatically
  • Serving robots.txt
  • CORS headers
  • More features on the way!
Was this page helpful?
0 / 5 - 0 ratings

Related issues

frank-dspeed picture frank-dspeed  Â·  7Comments

lacivert picture lacivert  Â·  3Comments

LeaVerou picture LeaVerou  Â·  5Comments

JonFranchi picture JonFranchi  Â·  6Comments

jondlm picture jondlm  Â·  6Comments