www/ruby-http_router 0.11.2 NetBSD
Kick-ass HTTP router for use in Rack
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- www, ruby
- Package size
- 270.2 KiB, 504.9 KiB installed
Description
# HTTP Router
## What is it?
This is an HTTP router for use in either a web framework, or on it's own using Rack. It takes a set of routes and attempts to find the best match for it. Take a look at the examples directory for how you'd use it in the Rack context.
## Features
* Ordered route resolution. * Supports variables, and globbing, both named and unnamed. * Regex support for variables. * Request condition support. * Partial matches. * Supports interstitial variables (e.g. /my-:variable-brings.all.the.boys/yard) and unnamed variable /one/:/two * Very fast and small code base (~1,000 loc). * Sinatra via https://github.com/joshbuddy/http_router_sinatra
Install
Binary package:
pkgin install ruby33-http_router
From pkgsrc:
cd /usr/pkgsrc/www/ruby-http_router && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.11.2 |
| NetBSD 10.1 aarch64 | 0.11.2 |
| SmartOS / illumos x86_64 | 0.11.2 |
| macOS 15 arm64 | 0.11.2 |
Dependencies
Run dependencies 3
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
ruby34-http_router-0.11.2,ruby40-http_router-0.11.2