client

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHTTPClient

func CreateHTTPClient(log *slog.Logger) *http.Client

CreateHTTPClient initializes an HTTP client with a custom cookie jar.

Types

type CookieJar

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

CookieJar implements http.CookieJar for storing cookies in memory.

func NewCookieJar

func NewCookieJar(log *slog.Logger) *CookieJar

NewCookieJar initializes an in-memory cookie jar.

func (*CookieJar) Cookies

func (c *CookieJar) Cookies(u *url.URL) []*http.Cookie

Cookies retrieves cookies for a given URL.

func (*CookieJar) SetCookies

func (c *CookieJar) SetCookies(u *url.URL, cookies []*http.Cookie)

SetCookies stores cookies for a given URL.

Jump to

Keyboard shortcuts

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