utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCookies

func ConvertCookies(cc []http.Cookie) []*http.Cookie

func NewCookieHTTP

func NewCookieHTTP(cookieDomain string, cookies []*http.Cookie) *http.Client

func NewWithTransport

func NewWithTransport(cookieDomain string, cookies []*http.Cookie, rt http.RoundTripper) *http.Client

Types

type Transport

type Transport struct {
	BeforeReq func(req *http.Request)
	AfterReq  func(resp *http.Response, req *http.Request)
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(tr http.RoundTripper) *Transport

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error)

Jump to

Keyboard shortcuts

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