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
Click to show internal directories.
Click to hide internal directories.