Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindJSONAllowEmptyBody ¶
BindJSONAllowEmptyBody should be used when a request is fully optional, and the request body is allowed to be completely empty. The correct usage of this, and DisallowEmptyBody prevents certain cases where errors are ambiguous and nonsensical.
func BindJSONtestc ¶
BindJSONDisallowEmptyBody should be a request is not fully optional, and the request body is never allowed to be completely empty. The correct usage of this, and AllowEmptyBody prevents certain cases where errors are ambiguous and nonsensical.
func ValidateUrl ¶
validateUrl checks if the given string is a valid complete URL, and either returns a absolute url, or an error. If the input url is not an absolute url, but just a fully qualified domain, http:// will be prepended.