Class HTTP::CookieJar::HashStore
In: lib/http/cookie_jar/hash_store.rb
Parent: AbstractStore

A store class that uses a hash-based cookie store.

In this store, cookies that share the same name, domain and path will overwrite each other regardless of the `for_domain` flag value. This store is built after the storage model described in RFC 6265 5.3 where there is no mention of how the host-only-flag affects in storing cookies. On the other hand, in MozillaStore two cookies with the same name, domain and path coexist as long as they differ in the `for_domain` flag value, which means they need to be expired individually.

Methods

add   cleanup   clear   default_options   delete   each   initialize_copy   new  

Public Class methods

Generates a hash based cookie store.

Available option keywords are as below:

:gc_threshold : GC threshold; A GC happens when this many times cookies have been stored (default: `HTTP::Cookie::MAX_COOKIES_TOTAL / 20`)

Public Instance methods

The copy constructor. This store class supports cloning.

[Validate]