Module: Falcon::Middleware::NotFound

Defined in:
lib/falcon/middleware/redirect.rb

Overview

A static middleware which always returns a 404 not found response.

Class Method Summary collapse

Class Method Details

.call(request) ⇒ Object



29
30
31
# File 'lib/falcon/middleware/redirect.rb', line 29

def self.call(request)
	return Protocol::HTTP::Response[404, {}, []]
end

.closeObject



33
34
# File 'lib/falcon/middleware/redirect.rb', line 33

def self.close
end