Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AuthenticatedClient = &http.Client{} UnauthenticatedClient = &http.Client{} )
View Source
var ( TerminalClientOnlyRequest = 1 TerminalClientVerbose = 2 )
Functions ¶
func NewTerminalClient ¶
func NewTerminalClient(opts TerminalClientOptions) *http.Client
func NewTokenV1RoundTripper ¶
func NewTokenV1RoundTripper() http.RoundTripper
Types ¶
type TerminalClientOptions ¶
type TerminalRoundTripper ¶
type TerminalRoundTripper struct { http.RoundTripper Stdout io.Writer Stderr io.Writer CurrentVersion string Progname string }
TerminalRoundTripper is a RoundTripper that dumps request and response based on the Verbosity. Verbosity >= 1 --> Dumps request Verbosity >= 2 --> Dumps response
type TokenV1RoundTripper ¶
type TokenV1RoundTripper struct {
http.RoundTripper
}
Click to show internal directories.
Click to hide internal directories.