Sha256: e0fae3676fb872fc039e879b17d658a3b2dcca4697e74120c74b3048c455b360

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

app_class = Class.new(Rack::App)
not_found_properties = {
    :user_defined_logic => lambda {
      response.status= 404
      response.write '404 Not Found'
      response.finish
    },
    :request_method => 'GET',
    :request_path => '\404',
    :description => 'page not found',
    :serializer => lambda { |o| String(o) },
    :app_class => app_class
}

Rack::App::Endpoint::NOT_FOUND = Rack::App::Endpoint.new(not_found_properties)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rack-app-0.12.1 lib/rack/app/endpoint/not_found.rb
rack-app-0.12.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.11.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.10.1 lib/rack/app/endpoint/not_found.rb
rack-app-0.9.2 lib/rack/app/endpoint/not_found.rb