http_client

package
v0.0.0-...-dc66ec4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxIdleConns        = 100
	MaxIdleConnsPerHost = 100
	IdleConnTimeout     = 90 * time.Second
	KeepAlive           = 30 * time.Second
	Timeout             = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client http.Client

func New

func New(usePool bool, op Options) *Client

func (*Client) ReqJson

func (c *Client) ReqJson(method string, url string, header http.Header,
	InputData, outputData interface{}) (int, error)

type Options

type Options struct {
	MaxIdleConns        int
	MaxIdleConnsPerHost int
	IdleConnTimeout     time.Duration
	Timeout             time.Duration
	KeepAlive           time.Duration
}

Jump to

Keyboard shortcuts

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