dummy_http
Version, currently master branch1 version
- master branchlatestOct 22, 2018
github.com/levups/dummy_http
Simple web app responding with any http status code or redirects you require
Installation
# Add this to your shard.yml
dependencies:
dummy_http:
github: levups/dummy_http
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.26.1- License
- MIT
- Author
- Clément Joubert
- Target
http_dummyfrom src/dummy_http.cr
Dependencies
Runtime Dependencies
- kemal~> 0.24.0github: kemalcr/kemal
- spec-kemal~> 0.4.0github: kemalcr/spec-kemal
README
Dummy HTTP
Simple HTTP server app written in Crystal using Kemal framework.
HTTP Dummy can be used to test your app against very basic HTTP responses (HTTP status 200, 404, 500, etc.) but also more complex scenarios like infinite redirect, local redirect or other domain redirect.
Installation
A Makefile is included in this project so you can simply run this command to install all dependencies on macOS :
make setup
If you need to install manually, install Crystal language then all dependencies (libraries):
crystal deps
Usage
Build the application:
make release
Run the application, listening by default on TCP port 3000:
./dummy
You can specify a specific port:
./dummy --port 4242
Development
Run tests:
KEMAL_ENV=test crystal spec
Start the application:
crystal run src/dummy_http.cr
Build (compile) without optimizations:
crystal build src/dummy_http.cr
Build (compile) for release, with optimizations:
crystal build --release src/dummy_http.cr
Contributing
- Fork it ( https://github.com/levups/http_dummy_crystal/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- czj Clément Joubert - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Oct 22, 2018
- Crystal
0.26.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/levups/dummy_http
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1