httpx

package
v0.0.0-...-3f13264 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UserAgent = "Bot2"

UserAgent is Bot2's default user-agent.

Variables

View Source
var DefaultClient = &http.Client{
	Timeout: time.Second * 10,
}

DefaultClient is an HTTP Client with sane defaults.

View Source
var ErrStatus = errors.New("non-OK status code")

Functions

func IsOK

func IsOK(code int) bool

IsOK tests if a status code is within the 2xx range.

Types

This section is empty.

Jump to

Keyboard shortcuts

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