http

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() *http.Client

NewClient returns a new http client with reasonable timeouts and using a randomized tcp hello fingerprint

Types

type ChromeClient added in v1.0.0

type ChromeClient struct{}

ChromeClient is an http client which uses a headless chrome browser to make requests Note that this client requires a chrome browser to be installed on the machine

func (*ChromeClient) Do added in v1.0.0

func (c *ChromeClient) Do(req *http.Request) (*http.Response, error)

Do performs the http request using a headless chrome browser

type ClientV2 added in v1.1.0

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

ClientV2 is an http client which uses a randomized tcp hello fingerprint

func NewClientV2 added in v1.1.0

func NewClientV2() *ClientV2

NewClientV2 returns a new http client with using a randomized tcp hello fingerprint

func (*ClientV2) Do added in v1.1.0

func (c *ClientV2) Do(req *http.Request) (*http.Response, error)

Do implements the http.Client interface

func (*ClientV2) SetClientHelloID added in v1.1.0

func (c *ClientV2) SetClientHelloID(id utls.ClientHelloID)

SetClientHelloID sets the ClientHelloID to use when establishing a new connection in case you want to override the default

Jump to

Keyboard shortcuts

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