Sha256: 97cacad6b1a51515a3cba71136f5e6c7820505041dcfc33ea4d2d2cbaba88319

Contents?: true

Size: 372 Bytes

Versions: 15

Compression:

Stored size: 372 Bytes

Contents

# frozen_string_literal: true
##
# 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

15 entries across 15 versions & 1 rubygems

Version Path
mechanize-2.12.2 lib/mechanize/file_request.rb
mechanize-2.12.1 lib/mechanize/file_request.rb
mechanize-2.12.0 lib/mechanize/file_request.rb
mechanize-2.11.0 lib/mechanize/file_request.rb
mechanize-2.10.1 lib/mechanize/file_request.rb
mechanize-2.10.0 lib/mechanize/file_request.rb
mechanize-2.9.2 lib/mechanize/file_request.rb
mechanize-2.9.1 lib/mechanize/file_request.rb
mechanize-2.9.0 lib/mechanize/file_request.rb
mechanize-2.8.5 lib/mechanize/file_request.rb
mechanize-2.8.4 lib/mechanize/file_request.rb
mechanize-2.8.3 lib/mechanize/file_request.rb
mechanize-2.8.2 lib/mechanize/file_request.rb
mechanize-2.8.1 lib/mechanize/file_request.rb
mechanize-2.8.0 lib/mechanize/file_request.rb