Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrainAndClose ¶
DrainAndClose consumes the remaining response body and closes it to allow connection reuse.
func JoinBasePath ¶ added in v1.5.0
JoinBasePath ensures the provided suffix is properly joined to the base prefix. The suffix may be relative or absolute and is treated as relative when the base is non-empty.
func NormalizeBasePath ¶ added in v1.5.0
NormalizeBasePath converts a configured base URL into a path prefix that always begins with a leading slash and omits any trailing slash. An empty string indicates the root.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.