Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHeaders ¶ added in v1.3.0
AddHeaders parses "Name: Value" entries into dst. It rejects anything net/http would refuse to send, so entries that pass here can't fail later for being malformed. Errors give the entry's position instead of its content.
func ValidateHTTPURL ¶ added in v1.3.0
ValidateHTTPURL checks a URL setting is an absolute http or https URL. Errors don't include the URL, as it may contain credentials.
func ValidateNetwork ¶ added in v1.3.0
ValidateNetwork checks a network setting is one that checks can dial: tcp, or tcp4/tcp6 to force an IP version.
func WithoutURL ¶ added in v1.3.0
WithoutURL strips the URL from a url.Error, as it may contain credentials.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.