http

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = newSharedClient()

Functions

func DoHttpAndHttpsRequestWithCa

func DoHttpAndHttpsRequestWithCa(method, url string, body interface{}, header map[string]string, ca string) (*http.Response, error)

DoHttpAndHttpsRequestWithCa only used by lifecycleHook and podTransitionRule controller. Ca with base64

func DoHttpAndHttpsRequestWithToken

func DoHttpAndHttpsRequestWithToken(method, url string, body interface{}, header map[string]string, token string) (*http.Response, error)

func ParseResponse

func ParseResponse(resp *http.Response, data interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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