Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple and lightweight http server for local files

Notifications You must be signed in to change notification settings

snwfdhmp/simplehttp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

Quickly serve a local directory over http

Getting started

Install with

go install github.com/snwfdhmp/simplehttp@latest

Usage

With no arguments, simplehttp starts serving files under ./ over port 8080.

$ simplehttp
INFO[0000] Serving ./ over 0.0.0.0:8080... Stop with ^C

With -d arg, specify the directory to be served.

$ simplehttp -d ./templates/
INFO[0000] Serving ./templates/ over 0.0.0.0:8080... Stop with ^C

With -p arg, specify the port to serve on.

$ simplehttp -p 31415
INFO[0000] Serving ./ over 0.0.0.0:31415... Stop with ^C

Feedback

Feel free to open an issue for any feedback or suggestion.

I fix bugs quickly.

Contributions

PR are accepted as soon as they follow Golang common standards. For more information: https://golang.org/doc/effective_go.html

About

Simple and lightweight http server for local files

Topics

Resources

Readme

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages