Sha256: 3ab2209f2ab366859d17a2d62c3ee34148c6220bdd9a9f0a3675391c1734ef2b
Contents?: true
Size: 464 Bytes
Versions: 2
Compression:
Stored size: 464 Bytes
Contents
class Rack::App::Middlewares::Configuration::PayloadParserSetter PARSER = ::Rack::App::Constants::ENV::PAYLOAD_PARSER PARSED = ::Rack::App::Constants::ENV::PARSED_PAYLOAD GETTER = ::Rack::App::Constants::ENV::PAYLOAD_GETTER def initialize(app) @app = app @parser = Rack::App::Payload::Parser.new end def call(env) env[PARSER]= @parser env[GETTER]= lambda { env[PARSED] ||= env[PARSER].parse_env(env) } @app.call(env) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-app-5.7.0 | lib/rack/app/middlewares/configuration/payload_parser_setter.rb |
rack-app-5.7.0.rc | lib/rack/app/middlewares/configuration/payload_parser_setter.rb |