Documentation
¶
Overview ¶
Package cookiejar merges the cookie stores of the files a run processed and writes them as a Netscape cookie file (--cookie-jar).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Accumulator ¶
type Accumulator struct {
// contains filtered or unexported fields
}
Accumulator merges the end-of-run cookie stores of every file a run processed into one ordered list: a cookie's first appearance fixes its position, later files' values for the same domain/path/name replace it in place, matching a Netscape cookie jar's own semantics.
func (*Accumulator) Add ¶
func (a *Accumulator) Add(cs []engine.Cookie, redact func(string) string)
Add merges cs, their values redacted with redact.
func (*Accumulator) Cookies ¶
func (a *Accumulator) Cookies() []engine.Cookie
Cookies returns the merged cookies in order.
Click to show internal directories.
Click to hide internal directories.