Protocol::HTTPSourceProtocolHTTPMiddlewareNotFound

module NotFound

A simple middleware that always returns a 404 response.

Definitions

def self.close

Close the middleware - idempotent no-op.

Implementation

def self.close
end

def self.call(request)

Call the middleware with the given request, always returning a 404 response. This middleware is useful as a default.

Signature

parameter request Request

The request object.

returns Response

The response object, which always contains a 404 status code.

Implementation

def self.call(request)
	Response[404]
end