method
continue
ruby latest stable - Class:
WEBrick ::HTTPRequest
continue()public
Generate HTTP/1.1 100 continue response if the client expects it, otherwise does nothing.
# File lib/webrick/httprequest.rb, line 244
def continue # :nodoc:
if self['expect'] == '100-continue' && @config[:HTTPVersion] >= "1.1"
@socket << "HTTP/#{@config[:HTTPVersion]} 100 continue#{CRLF}#{CRLF}"
@header.delete('expect')
end
end