Versions in this module Expand all Collapse all v1 v1.0.0 Dec 22, 2019 Changes in this version + const DefaultDialTimeout + const DefaultHTTPPort + const DefaultHTTPSPort + const DefaultHTTPTimeout + const DefaultLimit + func FastHTTPBaseDialer(addr string, dialTimeout time.Duration) (net.Conn, error) + func StdBaseDialer(addr string, dialTimeout time.Duration) (net.Conn, error) + type BaseDialer func(string, time.Duration) (net.Conn, error) + type Client struct + func NewClient(dialer Dialer) *Client + func (c *Client) Do(req *fasthttp.Request, resp *fasthttp.Response) error + func (c *Client) DoTimeout(req *fasthttp.Request, resp *fasthttp.Response, timeout time.Duration) error + type Dialer interface + Dial func(string) (net.Conn, error) + NotifyClosed func(string) + Release func(net.Conn, string) + type PooledDialer struct + func NewPooledDialer(dialer BaseDialer, timeout time.Duration, limit int) (*PooledDialer, error) + func (d *PooledDialer) Dial(addr string) (net.Conn, error) + func (d *PooledDialer) NotifyClosed(addr string) + func (d *PooledDialer) Release(conn net.Conn, addr string) + func (d *PooledDialer) Run() + type SimpleDialer struct + func NewSimpleDialer(base BaseDialer, timeout time.Duration) (*SimpleDialer, error) + func (s *SimpleDialer) Dial(addr string) (net.Conn, error) + func (s *SimpleDialer) NotifyClosed(_ string) + func (s *SimpleDialer) Release(conn net.Conn, _ string)