Sha256: 67715411f797e57e06aea2d35152b93a885ebd63bda03bb84419c8288621bc96

Contents?: true

Size: 365 Bytes

Versions: 9

Compression:

Stored size: 365 Bytes

Contents

require "rack/response"
class Rack::App::Router::NotFound < Rack::App::Router::Base

  protected

  NOT_FOUND_APP = lambda do |env|
    rack_response = Rack::Response.new
    rack_response.status = 404
    rack_response.write('404 Not Found')
    rack_response.finish
  end

  def get_app(env)
    NOT_FOUND_APP
  end

  def compile_registered_endpoints!
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rack-app-5.10.2 lib/rack/app/router/not_found.rb
rack-app-5.10.1 lib/rack/app/router/not_found.rb
rack-app-5.10.0 lib/rack/app/router/not_found.rb
rack-app-5.9.0 lib/rack/app/router/not_found.rb
rack-app-5.8.0 lib/rack/app/router/not_found.rb
rack-app-5.7.0 lib/rack/app/router/not_found.rb
rack-app-5.7.0.rc lib/rack/app/router/not_found.rb
rack-app-5.6.0 lib/rack/app/router/not_found.rb
rack-app-5.5.1 lib/rack/app/router/not_found.rb