cookies

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cookies implements a persistent cookie jar which satisfies the http.CookieJar interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jar

type Jar struct {
	// contains filtered or unexported fields
}

Jar implements http.CookieJar by wrapping the standard library's cookiejar.Jar. The jar uses a pantry to load cookies at startup and save cookies when set.

func NewCookieJar

func NewCookieJar(jarFile string) (*Jar, error)

func (*Jar) Cookies

func (j *Jar) Cookies(u *url.URL) []*http.Cookie

func (*Jar) SetCookies

func (j *Jar) SetCookies(u *url.URL, cookies []*http.Cookie)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL