net

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSpinnerTransport = SpinnerTransport{
	Disabled: false,
	Proxied:  http.DefaultTransport,
}

Functions

func GetCLIClient

func GetCLIClient() *http.Client

func MakeSpinner added in v0.11.0

func MakeSpinner() *spinner.Spinner

func PauseSpinner added in v0.11.0

func PauseSpinner() func()

Types

type SpinnerTransport

type SpinnerTransport struct {
	Disabled bool

	Proxied http.RoundTripper
}

func (SpinnerTransport) RoundTrip

func (st SpinnerTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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