lib/aws_lambda_ric/aws_lambda_marshaller.rb
# By default, JSON-parses the raw request body. This can be overwritten
# by users who know what they are doing.
By default, JSON-parses the raw request body. This can be overwritten
by users who know what they are doing.
By default JSON - parses the raw request body . This can be overwritten by users who know what they are doing .
def marshall_request(raw_request)
        content_type = raw_request['Content-Type']
        if content_type == 'application/json'
          JSON.parse(raw_request.body)
        else
          raw_request.body 
        end
      end
def marshall_request ( raw_request ) content_type = raw_request [ 'Content-Type' ] if content_type == 'application/json' JSON . parse ( raw_request . body ) else raw_request . body end end
By default, JSON-parses the raw request body.
By default JSON - parses the raw request body .
# return it unaltered
raw_request