Sha256: b425e8995e126a6e36167cf758f4ccdce5c2d38fb3d2daacd0ad990319332faf
Contents?: true
Size: 311 Bytes
Versions: 2
Compression:
Stored size: 311 Bytes
Contents
module Goliath module Rack class DefaultResponseFormat include Goliath::Rack::AsyncMiddleware def post_process(env, status, headers, body) if body.is_a?(String) [status, headers, [body]] else [status, headers, body] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
goliath-1.0.7 | lib/goliath/rack/default_response_format.rb |
goliath-1.0.6 | lib/goliath/rack/default_response_format.rb |