Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mokiat/httpserv
A simple HTTP File Server
https://github.com/mokiat/httpserv
files golang http-server
Last synced: 6 days ago
JSON representation
A simple HTTP File Server
- Host: GitHub
- URL: https://github.com/mokiat/httpserv
- Owner: mokiat
- License: mit
- Created: 2020-02-25T19:25:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T21:31:21.000Z (over 1 year ago)
- Last Synced: 2024-06-20T12:06:36.078Z (5 months ago)
- Topics: files, golang, http-server
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# httpserv
I find myself needing a simple HTTP file server quite often and `python -m SimpleHTTPServer` just doesn't cut it for me anymore, since it always runs on `0.0.0.0` and the actual command differs with the Python versions.
The `httpserv` aims to solve this problem, especially for Go developers. You can easily install it using the following shell command:
```sh
go install github.com/mokiat/httpserv@latest
```Use this next command to get available configuration flags:
```sh
httpserv --help
```To run an HTTP server that serves the files and folders located in the current directory, just run:
```sh
httpserv
```If you want to use `httpserv` but you already have an executable called `httpserv` on your system or you just don't want to install it, you can run it directly:
```sh
go run github.com/mokiat/httpserv@latest
```