Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mathieuancelin/httpdev
Dev http server tool
https://github.com/mathieuancelin/httpdev
Last synced: 3 days ago
JSON representation
Dev http server tool
- Host: GitHub
- URL: https://github.com/mathieuancelin/httpdev
- Owner: mathieuancelin
- Created: 2015-01-01T15:40:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-05T10:19:40.000Z (almost 10 years ago)
- Last Synced: 2023-03-11T09:56:28.155Z (over 1 year ago)
- Language: Go
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# httpdev
A simple CLI http server for dev purposes
## usage
```
usage: httpdev [options...] path_or_html_content?-h Display the help message
-address Listening address
-port Listening port
-status HTTP status code if serving single file or arbitrary html content
-prefix Root path of the url```
## examples
```
$ httpdev
$ httpdev /tmp
$ httpdev -address localhost /tmp
$ httpdev -address localhost -port 8080 /tmp
$ httpdev -prefix /static/ /tmp
$ httpdev /tmp/500.html
$ httpdev -status 500 /tmp/500.html
$ httpdev 'HELLO WORLD!
'```
## install
* from source
```
go get github.com/mathieuancelin/httpdev
```
* binaries[![Gobuild Download](http://gobuild.io/badge/github.com/mathieuancelin/httpdev/downloads.svg)](http://gobuild.io/github.com/mathieuancelin/httpdev)