Sha256: eec5d5e96061694d08060a4f9bf9296a87211cfe1c1953bd19d2d38125870ff5

Contents?: true

Size: 328 Bytes

Versions: 19

Compression:

Stored size: 328 Bytes

Contents

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rasti-web-2.0.1 lib/rasti/web/endpoint.rb
rasti-web-2.0.0 lib/rasti/web/endpoint.rb
rasti-web-1.2.1 lib/rasti/web/endpoint.rb
rasti-web-1.2.0 lib/rasti/web/endpoint.rb
rasti-web-1.1.0 lib/rasti/web/endpoint.rb
rasti-web-1.0.0 lib/rasti/web/endpoint.rb
rasti-web-0.2.3 lib/rasti/web/endpoint.rb
rasti-web-0.2.2 lib/rasti/web/endpoint.rb
rasti-web-0.2.1 lib/rasti/web/endpoint.rb
rasti-web-0.2.0 lib/rasti/web/endpoint.rb
rasti-web-0.1.1 lib/rasti/web/endpoint.rb
rasti-web-0.1.0 lib/rasti/web/endpoint.rb
rasti-web-0.0.7 lib/rasti/web/endpoint.rb
rasti-web-0.0.6 lib/rasti/web/endpoint.rb
rasti-web-0.0.5 lib/rasti/web/endpoint.rb
rasti-web-0.0.4 lib/rasti/web/endpoint.rb
rasti-web-0.0.3 lib/rasti/web/endpoint.rb
rasti-web-0.0.2 lib/rasti/web/endpoint.rb
rasti-web-0.0.1 lib/rasti/web/endpoint.rb