class Mechanize::FileRequest
A wrapper for a file URI that makes a request that works like a Net::HTTPRequest
Attributes
uri[RW]
Public Class Methods
new(uri)
click to toggle source
# File lib/mechanize/file_request.rb, line 9 def initialize uri @uri = uri end
Public Instance Methods
add_field(*a)
click to toggle source
# File lib/mechanize/file_request.rb, line 13 def add_field *a end
Also aliased as: []=
each_header()
click to toggle source
# File lib/mechanize/file_request.rb, line 22 def each_header end
path()
click to toggle source
# File lib/mechanize/file_request.rb, line 18 def path @uri.path end
response_body_permitted?()
click to toggle source
# File lib/mechanize/file_request.rb, line 25 def response_body_permitted? true end