Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)