httpconfig

package
v0.0.0-...-d72cbbf Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPConfig

type HTTPConfig struct {
	ProxyConfig
	ProxyURL          *url.URL
	HTTPClientFactory ld.HTTPClientFactory
}

HTTPConfig encapsulates ProxyConfig plus any other HTTP options we may support in the future (currently none).

func NewHTTPConfig

func NewHTTPConfig(proxyConfig ProxyConfig) (HTTPConfig, error)

NewHTTPConfig validates all of the HTTP-related options and returns an HTTPConfig if successful.

func (HTTPConfig) Client

func (c HTTPConfig) Client() *http.Client

Client creates a new HTTP client instance that isn't for SDK use.

type ProxyConfig

type ProxyConfig struct {
	Url         string
	NtlmAuth    bool
	User        string
	Password    string
	Domain      string
	CaCertFiles string
}

ProxyConfig represents all the supported proxy options. This is used in the Config struct in relay.go.

Jump to

Keyboard shortcuts

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