Lines Matching defs:Jar
48 // Options are the options for creating a new Jar.
59 // Jar implements the http.CookieJar interface from the net/http package.
60 type Jar struct {
75 // New returns a new cookie jar. A nil *Options is equivalent to a zero
77 func New(o *Options) (*Jar, error) {
78 jar := &Jar{
82 jar.psList = o.PublicSuffixList
84 return jar, nil
153 func (j *Jar) Cookies(u *url.URL) (cookies []*http.Cookie) {
158 func (j *Jar) cookies(u *url.URL, now time.Time) (cookies []*http.Cookie) {
228 func (j *Jar) SetCookies(u *url.URL, cookies []*http.Cookie) {
233 func (j *Jar) setCookies(u *url.URL, cookies []*http.Cookie, now time.Time) {
325 // jarKey returns the key to use for a jar.
348 // Only len(suffix) is used to determine the jar key from
350 // returns "com" as the jar key is generated from host.
379 // remove records whether the jar should delete this cookie, as it has already
384 func (j *Jar) newEntry(c *http.Cookie, now time.Time, defPath, host string) (e entry, remove bool, err error) {
436 func (j *Jar) domainAndType(host, domain string) (string, bool, error) {