testjar

package
v2.22.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

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 exists because 'cookiejar.New()' strips many of the http.Cookie fields that are needed to assert. Such as 'Secure' and 'SameSite'.

func New

func New() *Jar

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