Sha256: dbd138f2d446bf800c796443be00020c68f2017546bff4a6850ea42c96f6ce25
Contents?: true
Size: 509 Bytes
Versions: 7
Compression:
Stored size: 509 Bytes
Contents
$: << File.dirname(__FILE__) require 'alephant/broker/app' require 'alephant/broker/call_environment' module Alephant module Broker class RackApplication < Application def call(env) RequestStore.store[:env] ||= CallEnvironment.new(env) response = handle send response end def send(response) [ response.status, { "Content-Type" => response.content_type }, [ response.content.to_s ] ] end end end end
Version data entries
7 entries across 7 versions & 1 rubygems