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.
# File lib/net/http/generic_request.rb, line 306
def wait_for_continue(sock, ver)
if ver >= '1.1' and @header['expect'] and
@header['expect'].include?('100-continue')
if IO.select([sock.io], nil, nil, 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