get

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetTimeout = 15
View Source
var PostTimeout = 15

Functions

func DoGet

func DoGet(uri string, args ...string) (status int, rv string)

Modified to send Header!

--------------------------------------------- // Xyzzy101 - Setup QR Redirect ---------------------------------------------

export QR_SHORT_AUTH_TOKEN="w4h0wvtb1zk4uf8Xv.Ns9Q7j8"
wget -o out/,list1 -O out/,list2 \
	--header "X-Qr-Auth: ${QR_SHORT_AUTH_TOKEN}" \
	"http://t432z.com/upd/?url=http://test.test.com&id=5c"

-- 1. DoGet - change to create a header
-- 2. Example Call to set this

func DoGetHeader

func DoGetHeader(uri string, hdr []HeaderType, args ...string) (status int, rv string)

func DoPost

func DoPost(uri string, args ...string) (status int, rv string)

func DoPostHeader

func DoPostHeader(uri string, hdr []HeaderType, args ...string) (status int, rv string)

func GenRandBytes

func GenRandBytes(nRandBytes int) (buf []byte, err error)

============================================================================================================================================ Should move to aesccm package

func GenRandNumber

func GenRandNumber(nDigits int) (buf string, err error)

Generate a random number, 0..N, returned as a string with 6 to 8 non-zero digits.

func SetupGet

func SetupGet(d map[string]bool)

Types

type HeaderType

type HeaderType struct {
	Name  string
	Value string
}

Jump to

Keyboard shortcuts

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