module Mux
Overview
Mux provides a simple no magic Router
.
require "mux"
mux = Mux::Router.new
mux.post "/hello/:world" do |context|
context.response.print "Hello #{context.request.path_param(:world)}"
end
server = HTTP::Server.new(mux)
server.listen(8080)
The implementation is based on the luislavena/radix
shard.
Defined in:
mux.crConstant Summary
-
VERSION =
"0.1.0"