httputil

package
v0.0.0-...-f85af87 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBytes

func GetBytes(url string, proxyURL string) ([]byte, int, error)

func GetJSON

func GetJSON(url string, proxyURL string) (string, int, error)

func GetString

func GetString(url string, proxyURL string) (string, int, error)

func MeasureTime

func MeasureTime[T any](fn func(string, string) (T, int, error), url string, proxyURL string) (T, int, int64, error)

func TestConnection

func TestConnection(address string, port int, timeout time.Duration, proxyURL string) (bool, int64)

Usage: connected := TestConnection("example.com", 80, 3 * time.Second, "")

Types

This section is empty.

Jump to

Keyboard shortcuts

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