Sha256: c09de0c1c2913acc46fff30e1e1eff72d3619592f78ce621e0882d775e5a9e10
Contents?: true
Size: 473 Bytes
Versions: 3
Compression:
Stored size: 473 Bytes
Contents
$: << File.dirname(__FILE__) require 'alephant/broker/app' module Alephant module Broker class RackApplication < Application def call(env) response = handle( request_from(env['PATH_INFO'], env['QUERY_STRING']) ) send response end def send(response) [ response.status, {"Content-Type" => response.content_type}, [response.content.to_s] ] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alephant-broker-0.0.3 | lib/alephant/broker/app/rack.rb |
alephant-broker-0.0.2 | lib/alephant/broker/app/rack.rb |
alephant-broker-0.0.1 | lib/alephant/broker/app/rack.rb |