Skip to content

skyflyer/qhttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.