method

_read_data

ruby latest stable - Class: WEBrick::HTTPRequest

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

_read_data(io, method, *arg)
private

No documentation available.

# File lib/webrick/httprequest.rb, line 396
    def _read_data(io, method, *arg)
      begin
        WEBrick::Utils.timeout(@config[:RequestTimeout]){
          return io.__send__(method, *arg)
        }
      rescue Errno::ECONNRESET
        return nil
      rescue TimeoutError
        raise HTTPStatus::RequestTimeout
      end
    end