Documentation ¶
Overview ¶
Package httputil contains various http utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendParams ¶
AppendParams returns a URL with new parameters appended. No existing parameter is replaced. u is the original URL; nameValues is parameter name, parameter value, parameter name, parameter value, etc. nameValues must have even length.
func NewUrl ¶
NewUrl returns a new URL with a given path and parameters. nameValues is parameter name, parameter value, parameter name, parameter value, etc. nameValues must have even length.
func WithParams ¶
WithParams returns a URL with new parameters. If the parameters already exist in the original URL, they are replaced. u is the original URL; nameValues is parameter name, parameter value, parameter name, parameter value, etc. nameValues must have even length.
Types ¶
This section is empty.