Sha256: 085926ed0bcca4af389f6003377e2117add6219453c7effbb377df32b6c6bdbc

Contents?: true

Size: 342 Bytes

Versions: 24

Compression:

Stored size: 342 Bytes

Contents

##
# A wrapper for a file URI that makes a request that works like a
# Net::HTTPRequest

class Mechanize::FileRequest

  attr_accessor :uri

  def initialize uri
    @uri = uri
  end

  def add_field *a
  end

  alias []= add_field

  def path
    @uri.path
  end

  def each_header
  end

  def response_body_permitted?
    true
  end

end

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
mechanize-2.7.7 lib/mechanize/file_request.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/file_request.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/file_request.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/file_request.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/lib/mechanize/file_request.rb
mechanize-2.7.6 lib/mechanize/file_request.rb
mechanize-2.7.5 lib/mechanize/file_request.rb
mechanize-2.7.4 lib/mechanize/file_request.rb
mechanize-2.7.3 lib/mechanize/file_request.rb
mechanize-2.7.2 lib/mechanize/file_request.rb
mechanize-2.7.1 lib/mechanize/file_request.rb
mechanize-2.7.0 lib/mechanize/file_request.rb
mechanize-2.6.0 lib/mechanize/file_request.rb
mechanize-2.5.1 lib/mechanize/file_request.rb
mechanize-2.5 lib/mechanize/file_request.rb
mechanize-2.4 lib/mechanize/file_request.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/file_request.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/file_request.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/file_request.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/mechanize-2.3/lib/mechanize/file_request.rb