Hi Tom,
I'm not sure if it's directly related to Scorched but I figured I should still ask.
I pretty much want to try throttling requests from localhost, as a test.
In my example, I'm trying to add the middleware using the
test.ru file.
In the docs, you mention using it on a controller level (which in my case would be in Test or ApiV1, not even sure), but I could not exactly understand this part:
middleware << proc do
use Rack::Session::Cookie, secret: 'blah'
# Stolen from Rack's own documentation...
map "/lobster" do
use Rack::Lint
run Rack::Lobster.new
end
end
Any chance you could explain this part more if possible ?
If none of my questions are really related to Scorched, feel free to close the discussion. I just haven't been able to get any middleware going.
Thanks in advance!