closingclient

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClosingClient

type ClosingClient struct {
	// contains filtered or unexported fields
}

func New

func New(impl HttpClient) (*ClosingClient, error)

func (*ClosingClient) Close

func (c *ClosingClient) Close() error

func (*ClosingClient) CloseIdleConnections

func (c *ClosingClient) CloseIdleConnections()

func (*ClosingClient) Do

func (c *ClosingClient) Do(req *http.Request) (*http.Response, error)

type HttpClient

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

Jump to

Keyboard shortcuts

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