Method: ActionDispatch::Request#content_length

Defined in:
lib/action_dispatch/http/request.rb

#content_lengthObject

Returns the content length of the request as an integer.



297
298
299
300
# File 'lib/action_dispatch/http/request.rb', line 297

def content_length
  return raw_post.bytesize if has_header?(TRANSFER_ENCODING)
  super.to_i
end