Class: Mechanize::FileRequest

### Home Classes Methods

### In Files

- lib/mechanize/file_request.rb

### Parent

Object

### Methods

- ::new
- #[]=
- #add_field
- #each_header
- #path
- #response_body_permitted?

### Files

- EXAMPLES.rdoc
- GUIDE.rdoc
- LICENSE.rdoc
- Manifest.txt
- README.rdoc

### Class/Module Index

Quicksearch

- Mechanize
- Mechanize::ChunkedTerminationError
- Mechanize::ContentTypeError
- Mechanize::Cookie
- Mechanize::CookieCMethods
- Mechanize::CookieDeprecated
- Mechanize::CookieIMethods
- Mechanize::CookieJar
- Mechanize::CookieJarIMethods
- Mechanize::DirectorySaver
- Mechanize::Download
- Mechanize::ElementMatcher
- Mechanize::Error
- Mechanize::File
- Mechanize::FileConnection
- Mechanize::FileRequest
- Mechanize::FileResponse
- Mechanize::FileSaver
- Mechanize::Form
- Mechanize::Form::Button
- Mechanize::Form::CheckBox
- Mechanize::Form::Field
- Mechanize::Form::FileUpload
- Mechanize::Form::Hidden
- Mechanize::Form::ImageButton
- Mechanize::Form::Keygen
- Mechanize::Form::MultiSelectList
- Mechanize::Form::Option
- Mechanize::Form::RadioButton
- Mechanize::Form::Reset
- Mechanize::Form::SelectList
- Mechanize::Form::Submit
- Mechanize::Form::Text
- Mechanize::Form::Textarea
- Mechanize::HTTP
- Mechanize::HTTP::Agent
- Mechanize::HTTP::AuthChallenge
- Mechanize::HTTP::AuthRealm
- Mechanize::HTTP::AuthStore
- Mechanize::HTTP::ContentDispositionParser
- Mechanize::HTTP::WWWAuthenticateParser
- Mechanize::Headers
- Mechanize::History
- Mechanize::Image
- Mechanize::Page
- Mechanize::Page::Base
- Mechanize::Page::Frame
- Mechanize::Page::Image
- Mechanize::Page::Label
- Mechanize::Page::Link
- Mechanize::Page::MetaRefresh
- Mechanize::Parser
- Mechanize::PluggableParser
- Mechanize::Prependable
- Mechanize::RedirectLimitReachedError
- Mechanize::RedirectNotGetOrHeadError
- Mechanize::ResponseCodeError
- Mechanize::ResponseReadError
- Mechanize::RobotsDisallowedError
- Mechanize::TestCase
- Mechanize::UnauthorizedError
- Mechanize::UnsupportedSchemeError
- Mechanize::Util
- Mechanize::XmlFile
- HTTP
- HTTP::CookieJar

No matching classes.

# 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

[]=(*a) click to toggle source
Alias for: add_field
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.