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#connection_keep_alive?
connection_keep_alive?
lib/net/http/header.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/http/header.rb, line 509
def connection_keep_alive?
token = /(?:\A|,)\s*keep-alive\s*(?:\z|,)/i
@header['connection']&.grep(token) {return true}
@header['proxy-connection']&.grep(token) {return true}
false
end
No documentation available
See also
#connection_close?
#content_length
#chunked?
#content_length=
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1