Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 964 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 964 Bytes

qhttp

A very simple http server. Just run qhttp to serve files in the current directory and subdirectories on port 8000. Specify a port parameter (qhttp -port 3000) if you want to use a different port.

Why

Just because I felt like it and coding is fun. I've been using python -m SimpleHTTPServer for years and it still works (it serves single client at a time). There are other similar utlities like node's http-server.

Installation

  • Install using Homebrew: brew install skyflyer/homebrew-skyflyer-tap/qhttp
  • Download binary and extract. Copy to /usr/local/bin or somewhere else on your $PATH.

From source

  1. go get github.com/skyflyer/qhttp

How to use

  1. Execute qhttp from a directory you wish to serve.

If you want to use a different listening port, use qhttp -port 3000 to listen on port 3000.