Module: Protocol::HTTP::Middleware::NotFound
- Defined in:
- lib/protocol/http/middleware.rb
Overview
A simple middleware that always returns a 404 response.
Class Method Summary collapse
-
.call(request) ⇒ Object
Call the middleware with the given request, always returning a 404 response.
-
.close ⇒ Object
Close the middleware - idempotent no-op.
Class Method Details
.call(request) ⇒ Object
Call the middleware with the given request, always returning a 404 response. This middleware is useful as a default.
81 82 83 |
# File 'lib/protocol/http/middleware.rb', line 81 def self.call(request) Response[404] end |
.close ⇒ Object
Close the middleware - idempotent no-op.
74 75 |
# File 'lib/protocol/http/middleware.rb', line 74 def self.close end |