Serve

Dev tools

local static file server

SHOW HN2016

Serve

like python -m SimpleHTTPServer, but with gzip and http2

github.com

#static file server#http2#gzip#local development server#go

18points
7comments
#1,262of 2,264 in 2016
Top 56%of 2016 by points

How HN took it

QuietFewer than 5 comments about the project

0 positive, 2 neutral or asking, 0 mixed, 2 critical, out of 4 comments about the project.

Idea: 0 for, 2 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Useful for checking gzipped size against the 14kb boundary

    From 1 comment
    • Python's SimpleHTTPServer is for when you have some directory on your computer and you want to test it locally in the browser. That's all. That is however, the same intended…
      rhardih on HN

Objections

  • Gzip and HTTP/2 are not needed for a simple local server

    From 1 comment
    • This doesn't make any sense to me. And I've written a Go reverse proxy server https://github.com/carlmjohnson/simple-reverse-proxy . Python's SimpleHTTPServer is for when you…
      earthboundkid on HN
  • Go is not pre-installed on most systems, unlike Python

    From 1 comment
    • It's like `python3 -m http.server` but in a language that is rarely pre-installed on systems with an external program that has two external dependencies.
      Socketubs on HN

Requests

  • HTTP/2 support in Python http.server or Node http-server

    From 1 comment
    • Or `http-server` from `npm install -g http-server` in a language that frontend developers and increasing numbers of backend developers actually work with. That said, HTTP/2…
      WorldMaker on HN

Questions

  • Why Python's SimpleHTTPServer does not play HTML5 video well

    From 2 comments
    • If you have python-twisted installed, you can also use this one-liner: ``` python -c 'from twisted.web.server import Site; from twisted.web.static import File; from…
      chatmasta on HN
    • Easiest explanation is MIME type information. http.server module has only the bare minimum support for MIME types. Per standards things like HTML5 video tag are very reliant on…
      WorldMaker on HN

Alternatives named

  • Python http.server

    From 1 comment
    • It's like `python3 -m http.server` but in a language that is rarely pre-installed on systems with an external program that has two external dependencies.
      Socketubs on HN
  • npm http-server

    From 1 comment
    • Or `http-server` from `npm install -g http-server` in a language that frontend developers and increasing numbers of backend developers actually work with. That said, HTTP/2…
      WorldMaker on HN
  • Twisted one-liner file server

    From 1 comment
    • If you have python-twisted installed, you can also use this one-liner: ``` python -c 'from twisted.web.server import Site; from twisted.web.static import File; from…
      chatmasta on HN
  • Nginx, Apache, or Caddy

    From 1 comment
    • This doesn't make any sense to me. And I've written a Go reverse proxy server https://github.com/carlmjohnson/simple-reverse-proxy . Python's SimpleHTTPServer is for when you…
      earthboundkid on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/11607537)