Sha256: 8ce55b4433ab825c6451b668b31f70bb839f67d620e55e5dce529a6afa4517db
Contents?: true
Size: 574 Bytes
Versions: 10
Compression:
Stored size: 574 Bytes
Contents
module Lotus module Routing # The default Rack application that responds when a resource cannot be found. # # @since 0.1.0 # @api private class Default DEFAULT_CODE = 404 DEFAULT_BODY = ['Not Found'].freeze CONTENT_TYPE = 'Content-Type'.freeze class NullAction include Lotus::Action def call(env) end end def call(env) action = NullAction.new.tap { |a| a.call(env) } [ DEFAULT_CODE, {CONTENT_TYPE => action.content_type}, DEFAULT_BODY, action ] end end end end
Version data entries
10 entries across 10 versions & 1 rubygems