Module Mechanize::Parser
In: lib/mechanize/parser.rb

The parser module provides standard methods for accessing the headers and content of a response that are shared across pluggable parsers.

Methods

Constants

SPECIAL_FILENAMES = /\A#{special_filenames}/i   Special filenames that must be escaped

External Aliases

response -> header

Attributes

code  [RW]  The HTTP response code
response  [RW]  The Mechanize::Headers for this file
uri  [RW]  The URI this file was retrieved from

Public Instance methods

Extracts the filename from a Content-Disposition header in the response or from the URI. If full_path is true the filename will include the host name and path to the resource, otherwise a filename in the current directory is given.

Creates a Mechanize::Header from the Net::HTTPResponse response.

This allows the Net::HTTPResponse to be garbage collected sooner.

Finds a free filename based on filename, but is not race-free

[Validate]