http

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RequestTimeFormat = "2006-01-02T15-04-05"

Variables

This section is empty.

Functions

func BuildBasicAuthString

func BuildBasicAuthString(login, pass string) string

func BuildURL

func BuildURL(host, path, rawQuery string) (string, error)

func GetRequestValueInt

func GetRequestValueInt(req *http.Request, key string, defaultValue int64) int64

func GetRequestValueString

func GetRequestValueString(req *http.Request, key, defaultValue string) string

func GetRequestValueTime

func GetRequestValueTime(req *http.Request, key string, defaultValue time.Time) time.Time

func GetRequestValueTimeWithError

func GetRequestValueTimeWithError(req *http.Request, key string) (time.Time, error)

func GetResponseStatusCode

func GetResponseStatusCode(resp *http.Response) int

func GetValidURLFromEnvVar

func GetValidURLFromEnvVar(urlEnvVarName string) (url.URL, error)

func JoinURL

func JoinURL(parts ...string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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