Sha256: fcb090fabf6f2998ff5ed57fe4fa3560e349337f4b0464949bc4fc11dd3ce361

Contents?: true

Size: 488 Bytes

Versions: 6

Compression:

Stored size: 488 Bytes

Contents

app_class = Class.new(Rack::App)
not_found_properties = {
    :user_defined_logic => lambda {
      response.status= 404
      return '404 Not Found'
    },
    :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

6 entries across 6 versions & 1 rubygems

Version Path
rack-app-0.22.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.21.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.20.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.19.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.18.0 lib/rack/app/endpoint/not_found.rb
rack-app-0.17.0 lib/rack/app/endpoint/not_found.rb