
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
= disabler_middleware
== Usage
Rack::Disabler.new(app) do |disabler| disabler.store = Redis.new disabler.extractor = {|env| Rack::Request.new(env).path} disabler.responses = {'freeloader' => [402, {}, ["Payment Required"]],'douchebag' => [403, {}, ["Forbidden"]]} end
this is an example (these are the defaults) but it should give you some idea of how it works.
Put simply; each request runs the extractor the resulting value is looked up in the data store (Redis or anything else that responds to #get(key)) if theres a return string it finds the matching response in the responses store and returns that otherwise it calls the app.
== Contributing to disabler_middleware
== Copyright
Copyright (c) 2011 Randall Potter. See LICENSE.txt for further details.
FAQs
Unknown package
We found that disabler_middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.