private Method

HTTPRequest._read_data(io, method, arg)

There's no documentation for this item.

Source Code

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

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.