Documentation
¶
Overview ¶
Package url contains middlewares for manipulating request endpoint.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPath ¶
func AddPath(path string) c.Middleware
AddPath appends provided path to currently existing path on a request.
func BaseURL ¶
func BaseURL(uri string) c.Middleware
BaseURL parses and sets schema and host to the request.
func Param ¶
func Param(key, value string) c.Middleware
Param replaces one or multiple URL parameters with given value.
func Params ¶
func Params(params map[string]string) c.Middleware
Params replaces all provided parameters in URL with mapped values.
func PathPrefix ¶
func PathPrefix(path string) c.Middleware
PathPrefix adds provided path segment in front of current path of the request.
func URL ¶
func URL(rawURL string) c.Middleware
URL parses and sets entire URL to the request. If only path or query parameters needs to be changes, use other middlewares from this package.
Types ¶
This section is empty.