http

package
v1.16.10 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 3 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() *http.Client

func NewSSEClient added in v1.5.31

func NewSSEClient() *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