Sha256: 524b4554871fe917ba6042dc7de52555a1bd448f42a82b38db57e224907b7243

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 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
    },
    :default_headers => {},
    :request_method => 'GET',
    :error_handler => Rack::App::ErrorHandler.new,
    :request_path => '\404',
    :description => 'page not found',
    :serializer => Rack::App::Serializer.new,
    :app_class => app_class
}

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-app-0.16.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.15.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.14.0 lib/rack/app/endpoint/not_found.rb