http

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MPL-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func BuildBasicAuthString added in v1.3.7

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 added in v1.3.7

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