[{"data":1,"prerenderedAt":182},["ShallowReactive",2],{"project-11607537":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":34,"aspects":35,"strip":37,"post_text":30,"what":40,"said":66,"maker_in_thread":120,"shape":126,"grid":130,"attempts":144,"same_week":145,"maker_shows":39,"maker_hidden":175,"reader_version":176,"card":177},"11607537","Serve","like python -m SimpleHTTPServer, but with gzip and http2","title","Show HN: Serve – like python -m SimpleHTTPServer, but with gzip and http2","https:\u002F\u002Fgithub.com\u002Frhardih\u002Fserve","github.com","rhardih",1462131262,2016,18,7,1262,2264,56,"shown","dev_tools","local static file server","cli",[24,25,26,27,28],"static file server","http2","gzip","local development server","go","quiet",null,{"positive":32,"neutral":33,"mixed":32,"critical":33},0,2,4,{"idea":36},{"positive":32,"critical":33},[38,32,39,32,38,39,32],1,3,{"problem":41,"audience":48,"pricing":30,"motivation":52,"time_to_build":30,"stack":56,"openness":65,"stage":65,"team_size":65},{"value":42,"source":43,"evidence":44},"Serving static files locally with production-like gzip and HTTP\u002F2 behavior","maker",[45],{"id":46,"by":11,"text":47},"11634737","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…",{"value":49,"source":43,"evidence":50},"developers working on static sites",[51],{"id":46,"by":11,"text":47},{"value":53,"source":43,"evidence":54},"To check how requests and gzipped sizes behave like production before deploying",[55],{"id":46,"by":11,"text":47},[57],{"value":58,"source":59,"evidence":60},"Go","commenter",[61],{"id":62,"by":63,"text":64},"11611748","Socketubs","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.","unknown",{"praise":67,"objections":72,"requests":84,"questions":92,"alternatives":103},[68],{"value":69,"source":43,"evidence":70},"Useful for checking gzipped size against the 14kb boundary",[71],{"id":46,"by":11,"text":47},[73,80],{"value":74,"source":59,"evidence":75},"Gzip and HTTP\u002F2 are not needed for a simple local server",[76],{"id":77,"by":78,"text":79},"11627936","earthboundkid","This doesn't make any sense to me. And I've written a Go reverse proxy server https:\u002F\u002Fgithub.com\u002Fcarlmjohnson\u002Fsimple-reverse-proxy . Python's SimpleHTTPServer is for when you…",{"value":81,"source":59,"evidence":82},"Go is not pre-installed on most systems, unlike Python",[83],{"id":62,"by":63,"text":64},[85],{"value":86,"source":59,"evidence":87},"HTTP\u002F2 support in Python http.server or Node http-server",[88],{"id":89,"by":90,"text":91},"11611915","WorldMaker","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\u002F2…",[93],{"value":94,"source":59,"evidence":95},"Why Python's SimpleHTTPServer does not play HTML5 video well",[96,100],{"id":97,"by":98,"text":99},"11614445","chatmasta","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…",{"id":101,"by":90,"text":102},"11615766","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…",[104,108,112,116],{"value":105,"source":59,"evidence":106},"Python http.server",[107],{"id":62,"by":63,"text":64},{"value":109,"source":59,"evidence":110},"npm http-server",[111],{"id":89,"by":90,"text":91},{"value":113,"source":59,"evidence":114},"Twisted one-liner file server",[115],{"id":97,"by":98,"text":99},{"value":117,"source":59,"evidence":118},"Nginx, Apache, or Caddy",[119],{"id":77,"by":78,"text":79},{"comments":33,"answered":32,"key":121},[122,123],{"id":46,"text":47},{"id":124,"text":125},"11612084","I couldn't fit all that in the title though. :) Joking aside, you are correct. Go shipping pre-installed is a yet to be seen nice-to-have on most systems.",{"commenters":127,"max_depth":33,"maker_replies":33,"first_comment_mins":128,"lifespan_hours":129},5,1150,85,[131,133,135,137,139,140,142],[77,32,38,132,78,32],"project\u002Fcritical\u002Fidea",[46,32,32,134,11,38],"project\u002Fpositive\u002Fidea",[97,38,39,136,98,32],"project\u002Fneutral\u002Fnone",[101,38,32,138,90,32],"commenter\u002Fneutral\u002Fnone",[62,33,38,132,63,32],[89,33,39,141,90,32],"project\u002Fneutral\u002Fidea",[124,33,32,143,11,38],"maker\u002Fneutral\u002Fnone",[],[146,150,155,160,165,170],{"id":147,"name":148,"points":149,"category":20},"11587468","Jam API",300,{"id":151,"name":152,"points":153,"category":154},"11603604","Alloy",148,"productivity",{"id":156,"name":157,"points":158,"category":159},"11599714","TeachCraft",129,"learning_science",{"id":161,"name":162,"points":163,"category":164},"11618550","GAM",115,"languages",{"id":166,"name":167,"points":168,"category":169},"11610832","Panther",108,"consumer_social",{"id":171,"name":172,"points":173,"category":174},"11589340","TinyRave",68,"creative",false,"v2",{"id":178,"name":5,"line":6,"ai":175,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":30,"top":18,"kw":179,"maker":11,"domain":10,"tier":19,"attempts":32,"strip":180,"url":9,"mix":181,"praise":69,"objection":74,"sub":21},11607537,[24,25,26,27,28],"1030130",[32,33,32,33],1794036543904]