Module: OpenapiFirst::RequestBodyParsers::Utils
- Defined in:
- lib/openapi_first/request_body_parsers.rb
Overview
Not sure where to put this
Class Method Summary collapse
Class Method Details
.read_body(request) ⇒ Object
25 26 27 28 29 |
# File 'lib/openapi_first/request_body_parsers.rb', line 25 def self.read_body(request) body = request.body&.read request.body.rewind if request.body.respond_to?(:rewind) body end |