http

package
v1.16.12-beta038 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetDialTimeout      = 30 * time.Second
	TLSHandshakeTimeout = 30 * time.Second
	ClientTimeout       = 5 * time.Minute
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(insecure ...bool) *http.Client

func NewSSEClient added in v1.5.31

func NewSSEClient(insecure ...bool) *http.Client

NewSSEClient is HTTP client with long timeout to be able to read SSE endpoints

Types

type HttpClient added in v1.11.25

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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