serve-dir

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

README

Serves a directory over HTTP

I was extremely annoyed at python -m SimpleHTTPServer (lack of) speed so I wrote one.

This project depends only on stdlib on purpose.

Installation

go get github.com/maruel/serve-dir

Usage

Serve the current directory:

serve-dir

Help with the command line arguments available:

serve-dir -help

Example output

11:15:52.282045 Serving /home/my_account/src on port 8010
11:15:53.916813 192.168.1.2:2092 - 304      0b  GET /src/
11:15:54.010258 192.168.1.2:2092 - 404     19b  GET /favicon.ico
11:16:08.770496 192.168.1.2:2094 - 200   8877b  GET /src/foo.json

Documentation

Overview

serve-dir serves a directory over HTTP and logs the request to stderr.

Directories

Path Synopsis
Package loghttp exposes a http.Handler that logs requests via log.Printf().
Package loghttp exposes a http.Handler that logs requests via log.Printf().

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL