mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
godoc: minor
This commit is contained in:
parent
382e7c14cb
commit
43079f75d2
|
@ -43,7 +43,6 @@ func ProxyHandler(target *url.URL, config *tls.Config) *httputil.ReverseProxy {
|
|||
return p
|
||||
}
|
||||
|
||||
|
||||
// mergeQuery return a query string that combines targetQuery and reqQuery
|
||||
// and remove the duplicated query parameters of them.
|
||||
func mergeQuery(targetQuery, reqQuery string) string {
|
||||
|
|
|
@ -121,6 +121,9 @@ var errSkip = errors.New("skip")
|
|||
|
||||
var allMethods = append(router.AllMethods[0:], []string{"ALL", "ANY"}...)
|
||||
|
||||
// CustomPathWordFunc describes the function which can be passed
|
||||
// through `Application.SetCustomPathWordFunc` to customize
|
||||
// the controllers method parsing.
|
||||
type CustomPathWordFunc func(path, w string, wordIndex int) string
|
||||
|
||||
func addPathWord(path, w string) string {
|
||||
|
|
|
@ -122,6 +122,8 @@ func (app *Application) SetName(appName string) *Application {
|
|||
return app
|
||||
}
|
||||
|
||||
// SetCustomPathWordFunc sets a custom function
|
||||
// which is responsible to override the existing controllers method parsing.
|
||||
func (app *Application) SetCustomPathWordFunc(wordFunc CustomPathWordFunc) *Application {
|
||||
app.customPathWordFunc = wordFunc
|
||||
return app
|
||||
|
|
Loading…
Reference in New Issue
Block a user