End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::HTTPGenericRequest#wait_for_continue
wait_for_continue(sock, ver)
lib/net/http/generic_request.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/net/http/generic_request.rb, line 310
def wait_for_continue(sock, ver)
if ver >= '1.1' and @header['expect'] and
@header['expect'].include?('100-continue')
if sock.io.to_io.wait_readable(sock.continue_timeout)
res = Net::HTTPResponse.read_new(sock)
unless res.kind_of?(Net::HTTPContinue)
res.decode_content = @decode_content
throw :response, res
end
end
end
end
Waits up to the continue timeout for a response from the server provided we’re speaking HTTP 1.1 and are expecting a 100-continue response.
See also
#supply_default_content_type
#write_header
#send_request_with_body_stream
also in
3.4 · 3.3 · 3.1 · 3.0