Documentation ¶
Index ¶
- Variables
- func ParseURL(url string, aliases map[string]string) (*url.URL, error)
- type AWSigner
- type Client
- type DefaultSigner
- type MIMEType
- type RequestSigner
- type Settings
- type TLSOptions
- type Tracer
- func (t *Tracer) ConnectDone(network, addr string, err error)
- func (t *Tracer) ConnectStart(network, addr string)
- func (t *Tracer) DNSDone(info httptrace.DNSDoneInfo)
- func (t *Tracer) DNSStart(info httptrace.DNSStartInfo)
- func (t *Tracer) Report(total time.Duration)
- func (t *Tracer) RoundTrip(req *http.Request) (*http.Response, error)
- func (t *Tracer) TLSHandshakeDone(state tls.ConnectionState, err error)
- func (t *Tracer) TLSHandshakeStart()
Constants ¶
This section is empty.
Variables ¶
View Source
var (
KnownHTTPHeaders map[string][]string
)
View Source
var ( SupportedMethods = []string{ http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete, http.MethodHead, http.MethodOptions, http.MethodPatch, } )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BuildRequest ¶
type DefaultSigner ¶
type DefaultSigner struct{}
func (DefaultSigner) Sign ¶
func (s DefaultSigner) Sign(r *http.Request, body io.ReadSeeker) error
type RequestSigner ¶
type RequestSigner interface {
Sign(r *http.Request, body io.ReadSeeker) error
}
RequestSigner is used to sign request using AWS sig v4.
type Settings ¶ added in v0.13.0
type Settings struct { Timeout time.Duration TLS TLSOptions FollowRedirects bool }
func NewSettings ¶ added in v0.13.0
func NewSettings() Settings
func (Settings) BuildHTTPClient ¶ added in v0.13.0
func (Settings) WithNoFollowRedirects ¶ added in v0.13.0
func (Settings) WithTLSOptions ¶ added in v0.13.0
func (s Settings) WithTLSOptions(opts TLSOptions) Settings
type TLSOptions ¶ added in v0.13.0
type TLSOptions struct { Cert types.Option[certificate] MinVersion uint16 MaxVersion uint16 SkipVerifyInsecure bool }
func NewTLSOptions ¶ added in v0.13.0
func NewTLSOptions() TLSOptions
func (TLSOptions) WithPKCS12Cert ¶ added in v0.13.0
func (tlsOptions TLSOptions) WithPKCS12Cert(pfx []byte, passw string) TLSOptions
func (TLSOptions) WithVersions ¶ added in v0.13.0
func (tlsOptions TLSOptions) WithVersions(min, max uint16) TLSOptions
func (TLSOptions) WithX509Cert ¶ added in v0.13.0
func (tlsOptions TLSOptions) WithX509Cert(certfile, keyfile string) TLSOptions
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
func (*Tracer) ConnectDone ¶
func (*Tracer) ConnectStart ¶
func (*Tracer) DNSDone ¶
func (t *Tracer) DNSDone(info httptrace.DNSDoneInfo)
func (*Tracer) DNSStart ¶
func (t *Tracer) DNSStart(info httptrace.DNSStartInfo)
func (*Tracer) TLSHandshakeDone ¶
func (t *Tracer) TLSHandshakeDone(state tls.ConnectionState, err error)
func (*Tracer) TLSHandshakeStart ¶
func (t *Tracer) TLSHandshakeStart()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.