Sha256: acd938bcdef87be11e7a6663de4e5d042e38df132be840040df01681ef093ab4
Contents?: true
Size: 471 Bytes
Versions: 17
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true require 'grape/middleware/base' module Grape module Middleware class Globals < Base def before request = Grape::Request.new(@env, build_params_with: @options[:build_params_with]) @env[Grape::Env::GRAPE_REQUEST] = request @env[Grape::Env::GRAPE_REQUEST_HEADERS] = request.headers @env[Grape::Env::GRAPE_REQUEST_PARAMS] = request.params if @env[Grape::Env::RACK_INPUT] end end end end
Version data entries
17 entries across 17 versions & 2 rubygems