util

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildHTTPParams added in v0.3.5

func BuildHTTPParams(params ...map[string]string) string

buildParams creates an escaped param string from a slice

func HTTPGet

func HTTPGet(url string, insecure bool, params string, headers ...map[string]string) ([]byte, error)

HTTPGet is a simple HTTP client function to return page body

func HTTPPost added in v0.2.3

func HTTPPost(url string, insecure bool, payload []byte, params string, headers ...map[string]string) ([]byte, error)

HTTPPost performs an HTTP POST to the target URL and includes auth parameters, ignoring certificates, etc

Types

This section is empty.

Jump to

Keyboard shortcuts

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