httptools

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxIdleConnections        int   = 30
	MaxIdleConnectionsPerHost int   = 30
	RequestTimeout            int32 = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPTool

type HTTPTool interface {
	SendRequest(req *http.Request) (int, []byte, error)
	SendRequestTimeout(req *http.Request, timeout time.Duration) (int, []byte, error)
	SendRequestWithStatusCode(req *http.Request, expectedCode int) (int, []byte, error)
	SendRequestTimeoutStatusCode(req *http.Request, timeout time.Duration, expectedCode int) (int, []byte, error)
	CreateRequest(method string, url string, headers *map[string]string, schedulerID string) *http.Request
}

func New

func New(userAgentVersion string) HTTPTool

Jump to

Keyboard shortcuts

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