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.
SPECIAL_FILENAMES | = | /\A#{special_filenames}/i | Special filenames that must be escaped |
response | -> | header |
code | [RW] | The HTTP response code |
response | [RW] | The Mechanize::Headers for this file |
uri | [RW] | The URI this file was retrieved from |
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.