class Goliath::Rack::Params
A middle ware to parse params. This will parse both the query string parameters and the body and place them into the params hash of the Goliath::Env for the request.
@example
use Goliath::Rack::Params
Public Class Methods
new(app)
click to toggle source
# File lib/actn/api/goliath/params.rb, line 58 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/actn/api/goliath/params.rb, line 62 def call(env) Goliath::Rack::Validator.safely(env) do env['params'] = retrieve_params(env) @app.call(env) end end