method
serve
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::Routing::Mapper::Constraints
serve(req)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 45
def serve(req)
return [ 404, {'X-Cascade' => 'pass'}, [] ] unless matches?(req)
if dispatcher?
@app.serve req
else
@app.call req.env
end
end