module Rasti module Web class Endpoint def initialize(&block) @block = block end def call(env) request = Request.new env response = Rack::Response.new @block.call request, response, Render.new(request, response) response.finish end end end end