engine

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeResponseBody

func DecodeResponseBody(resp *http.Response) ([]byte, error)

DecodeResponseBody attempts to decode a compressed HTTP response body.

func NewHTTPClient

func NewHTTPClient(allowRedirect bool, tlsConfig *tls.Config) *http.Client

Types

type DelayedTransport

type DelayedTransport struct {
	Transport http.RoundTripper
	Delay     time.Duration
}

func (*DelayedTransport) RoundTrip

func (t *DelayedTransport) RoundTrip(req *http.Request) (*http.Response, error)

type FetchResult

type FetchResult struct {
	InitialURL        *url.URL
	FinalURL          *url.URL
	Response          *http.Response
	RedirectTarget    *url.URL
	Redirected        bool
	RedirectedToHTTPS bool
}

func Fetch

func Fetch(target string) (*FetchResult, error)

func FetchWithTLSConfig

func FetchWithTLSConfig(target string, tlsConfig *tls.Config) (*FetchResult, error)

Jump to

Keyboard shortcuts

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