Commits

Stefan Saasen  committed 926f72e

Removed unused file

  • Participants
  • Parent commits 3a4d9fa

Comments (0)

Files changed (1)

File src/main/ruby/do_http_request.rb

-require 'open-uri'
-require 'java'
-
-class RurlResponse
-  include Java::com.atlassian.plugins.polyglot.jrubyexample.servlet.HttpResponseInformation
-  attr_accessor :http_headers, :body_lines
-  def initialize(http_headers, body_lines)
-    @http_headers, @body_lines = http_headers, body_lines
-  end
-end
-
-class Rurl
-  def curl(url)
-    url = ("http://#{url}" unless url =~ /^http/).strip
-    open(url) do |f|
-      RurlResponse.new(f.meta, f.each_line.to_a[1..10])
-    end
-  end
-end