Sha256: 1b5a38e2080f02b40fbfce7e55870062ef10e131ae98b73abd53ef4fa16f0e6d
Contents?: true
Size: 339 Bytes
Versions: 2
Compression:
Stored size: 339 Bytes
Contents
# frozen_string_literal: true module Ezframe class Server def initialize Controller.init end def call(env) req = Rack::Request.new(env) res = Rack::Response.new Controller.exec(req, res) if res.body.empty? raise "no body in response" end return res.finish end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ezframe-0.2.0 | lib/ezframe/server.rb |
ezframe-0.1.1 | lib/ezframe/server.rb |