flipper flips root domains to www subdomains!
It is powered by the most excellent event driven hyper library.
curl -v -X GET http://localhost:3000/ -H "example.com"
> GET / HTTP/1.1
> User-Agent: curl/7.35.0
> Accept: */*
> Host: example.com
>
< HTTP/1.1 308 Permanent Redirect
< Location: www.example.com
< Date: Wed, 20 Jul 2016 02:12:20 GMT
< Transfer-Encoding: chunked
Flipper ships as a standalone executable with a small set of command-line options. Here is the flipper's help screen for more details on the supported options:
$ flipper --help
flipper - HTTP domain name flipper, powered by hyper.
Usage:
flipper [--bind=<bind>] [--port=<port>] [--threads=<st>]
flipper (-h | --help)
flipper --version
Options:
-h --help Show this screen.
--version Show version.
-b --bind=<bind> Bind to specific IP [default: 127.0.0.1]
-p --port=<port> Run on a specific port number [default: 3000]