gokhttp_cookiejar

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 12 Imported by: 0

README

gOkHttp-cookiejar

Cookie Jar addon for gOkHttp

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieJarWrapper

type CookieJarWrapper struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewCookieJar

func NewCookieJar(fileLocation, encryptionKey string, psl cookiejar.PublicSuffixList) (*CookieJarWrapper, error)

func (*CookieJarWrapper) Cookies

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

func (*CookieJarWrapper) Load

func (j *CookieJarWrapper) Load() error

func (*CookieJarWrapper) Save

func (j *CookieJarWrapper) Save() error

func (*CookieJarWrapper) SetCookies

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

type JarOption

type JarOption struct {
	Jar *CookieJarWrapper
}

func NewJarOption

func NewJarOption(jar *CookieJarWrapper) *JarOption

func (*JarOption) Execute

func (o *JarOption) Execute(client *http.Client) error

Jump to

Keyboard shortcuts

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