tiny
Version, currently master branch1 version
- master branchlatestAug 16, 2017
github.com/molovo/tiny
A Crystal module to help you build multi-threaded HTTP micro-services
3 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
tiny:
github: molovo/tiny
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.22.0- License
- MIT
- Author
- James Dinsdale
Dependencies
Runtime Dependencies
README
tiny
A simple wrapper around HTTP::Server for building CORS-enabled, multi-threaded HTTP micro-services in Crystal.
Installation
Add this to your application's shard.yml:
dependencies:
tiny:
github: molovo/tiny
Usage
require "tiny"
# Create the handler for incoming requests
serve do |request, response|
# This block will only be run on GET requests
request.get do
response.json({
"message" => "The server is up and running",
"timestamp" => Time.now.to_s,
})
end
# This block will only be run on POST requests
request.post do
# Do something awesome!
end
end
Contributing
- Fork it ( https://github.com/molovo/tiny/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
- @molovo James Dinsdale - 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
- Aug 16, 2017
- Crystal
0.22.0- Indexed
- yes
Dependents
Repository
github.com/molovo/tiny
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1