instance method
content_length
Ruby on Rails 8.1.2
Since v3.0.20Signature
content_length()
Returns the content length of the request as an integer.
Source
# File actionpack/lib/action_dispatch/http/request.rb, line 297
def content_length
return raw_post.bytesize if has_header?(TRANSFER_ENCODING)
super.to_i
end
Defined in actionpack/lib/action_dispatch/http/request.rb line 297
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Request