Protocol::HTTPSourceProtocolHTTPMiddlewareOkay

module Okay

A simple middleware that always returns a 200 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 200 response.

Signature

parameter request Request

The request object.

returns Response

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

Implementation

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