Class: WWW::Mechanize::CookieJar

Class | WWW::Mechanize::CookieJar
In: | lib/www/mechanize/cookie_jar.rb
Parent: | Object

This class is used to manage the Cookies that have been returned from any particular website.

### Methods

add clear! cookies dump_cookiestxt empty? load load_cookiestxt new save_as to_a

### Attributes

jar | [R] |

### Public Class methods

new()

### Public Instance methods

add(uri, cookie)

Add a cookie to the Jar.

clear!()

Clear the cookie jar

cookies(url)

Fetch the cookies that should be used for the URI object passed in.

dump_cookiestxt(io)

Write cookies to Mozilla cookies.txt-style IO stream

empty?(url)
load(file, format = :yaml)

Load cookie jar from a file in the format specified.

Available formats: :yaml <- YAML structure. :cookiestxt <- Mozilla‘s cookies.txt format

load_cookiestxt(io)

Read cookies from Mozilla cookies.txt-style IO stream

save_as(file, format = :yaml)

Save the cookie jar to a file in the format specified.

Available formats: :yaml <- YAML structure :cookiestxt <- Mozilla‘s cookies.txt format

to_a()

[Validate]