request

package
v0.0.0-...-dcaea88 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHeader

func WithHeader(name, value string) curl.RequestOption

func WithHost

func WithHost(host string) curl.RequestOption

Types

type RequestOptionList

type RequestOptionList []curl.RequestOption

func Options

func Options(options ...curl.RequestOption) RequestOptionList

func (RequestOptionList) ApplyToClient

func (l RequestOptionList) ApplyToClient(client *http.Client) error

func (RequestOptionList) ApplyToRequest

func (l RequestOptionList) ApplyToRequest(req *http.Request) error

type TLSRequestOption

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

func WithTLS

func WithTLS(cacertFile string, host, ingressHost string, secureIngressPort string) TLSRequestOption

func (TLSRequestOption) ApplyToClient

func (m TLSRequestOption) ApplyToClient(client *http.Client) error

func (TLSRequestOption) ApplyToRequest

func (m TLSRequestOption) ApplyToRequest(req *http.Request) error

func (TLSRequestOption) WithClientCertificate

func (m TLSRequestOption) WithClientCertificate(clientCertFile, clientKeyFile string) TLSRequestOption

Jump to

Keyboard shortcuts

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