Documentation ¶
Index ¶
- Constants
- func BuildBasicAuthString(login, pass string) string
- func BuildURL(host, path, rawQuery string) (string, error)
- func GetRequestValueInt(req *http.Request, key string, defaultValue int64) int64
- func GetRequestValueString(req *http.Request, key, defaultValue string) string
- func GetRequestValueTime(req *http.Request, key string, defaultValue time.Time) time.Time
- func GetRequestValueTimeWithError(req *http.Request, key string) (time.Time, error)
- func GetResponseStatusCode(resp *http.Response) int
- func GetValidURLFromEnvVar(urlEnvVarName string) (url.URL, error)
- func JoinURL(parts ...string) string
Constants ¶
View Source
const RequestTimeFormat = "2006-01-02T15-04-05"
Variables ¶
This section is empty.
Functions ¶
func BuildBasicAuthString ¶
func GetRequestValueInt ¶
func GetRequestValueString ¶
func GetRequestValueTime ¶
func GetResponseStatusCode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.