module Protocol::Rack::Adapter

def self.make_response(env, response)

@returns [Protocol::HTTP::Response] A Protocol::HTTP response
@parameter response [Array] The Rack response [status, headers, body]
@parameter env [Hash] The Rack environment

Converts a Rack response into a Protocol::HTTP response.
def self.make_response(env, response)
	IMPLEMENTATION.make_response(env, response)
end

def self.new(app)

@returns [Protocol::HTTP::Middleware] An adapter that can handle HTTP requests
@parameter app [Interface(:call)] A Rack application that responds to #call

Creates a new adapter instance for the given Rack application.
def self.new(app)
	IMPLEMENTATION.wrap(app)
end

def self.parse_file(...)

@returns [String | Nil] The parsed file path or nil if not found
@parameter env [Hash] The Rack environment

Parses a file path from the Rack environment.
def self.parse_file(...)
	IMPLEMENTATION.parse_file(...)
end