End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::HTTPHeader#content_length=
content_length=(len)
lib/net/http/header.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/http/header.rb, line 317
def content_length=(len)
unless len
@header.delete 'content-length'
return nil
end
@header['content-length'] = [len.to_i.to_s]
end
No documentation available
See also
#content_length
#content_range
#connection_keep_alive?
#content_type
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1