httputil

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHTTPClient

func BuildHTTPClient(sslDisabled bool) *http.Client

BuildHTTPClient builds custom http client with configured ssl validation

func BuildHTTPClientTLS added in v0.1.11

func BuildHTTPClientTLS(tlsCertKey, tlsPrivateKey string) (*http.Client, error)

BuildHTTPClient builds custom http client with configured ssl validation

func NormalizeURL

func NormalizeURL(url string) string

NormalizeURL removes trailing slashesh in url

func UnmarshalResponse

func UnmarshalResponse(response *http.Response, jsonResult interface{}) error

UnmarshalResponse reads the response body and tries to parse it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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