Class: Grape::Request
- Inherits:
-
Rack::Request
- Object
- Rack::Request
- Grape::Request
- Defined in:
- lib/grape/request.rb
Constant Summary collapse
- HTTP_PREFIX =
'HTTP_'
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(env, **options) ⇒ Request
constructor
A new instance of Request.
- #params ⇒ Object
- #rack_params ⇒ Object
Constructor Details
Instance Method Details
#headers ⇒ Object
22 23 24 |
# File 'lib/grape/request.rb', line 22 def headers @headers ||= build_headers end |
#params ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/grape/request.rb', line 14 def params @params ||= build_params rescue EOFError raise Grape::Exceptions::EmptyMessageBody.new(content_type) rescue Rack::Multipart::MultipartPartLimitError raise Grape::Exceptions::TooManyMultipartFiles.new(Rack::Utils.multipart_part_limit) end |
#rack_params ⇒ Object
7 |
# File 'lib/grape/request.rb', line 7 alias rack_params params |