session

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Session)

func WithClientHelloID

func WithClientHelloID(clientHelloID utls.ClientHelloID) Option

WithClientHelloID is used to set tls config

func WithCookieJar

func WithCookieJar(jar http.CookieJar) Option

WithCookieJar is used to set cookie jar

func WithTimeout

func WithTimeout(timeout time.Duration) Option

WithTimeout is used to set timeout

func WithTransport

func WithTransport(transport *http.Transport) Option

WithTransport is used to set transport

type Session

type Session struct {
	*http.Client
}

func New

func New(opts ...Option) *Session

Jump to

Keyboard shortcuts

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