mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
rename master branch to main
This commit is contained in:
12
iris.go
12
iris.go
@@ -247,7 +247,7 @@ func (app *Application) WWW() router.Party {
|
||||
// If you need more information about this implementation then you have to navigate through
|
||||
// the `core/router#NewSubdomainRedirectWrapper` function instead.
|
||||
//
|
||||
// Example: https://github.com/kataras/iris/tree/master/_examples/routing/subdomains/redirect
|
||||
// Example: https://github.com/kataras/iris/tree/main/_examples/routing/subdomains/redirect
|
||||
func (app *Application) SubdomainRedirect(from, to router.Party) router.Party {
|
||||
sd := router.NewSubdomainRedirectWrapper(app.ConfigurationReadOnly().GetVHost, from.GetRelPath(), to.GetRelPath())
|
||||
app.Router.AddRouterWrapper(sd)
|
||||
@@ -803,7 +803,7 @@ type Runner func(*Application) error
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/main/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// See `Run` for more.
|
||||
@@ -825,7 +825,7 @@ func Listener(l net.Listener, hostConfigs ...host.Configurator) Runner {
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/main/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// See `Run` for more.
|
||||
@@ -849,7 +849,7 @@ func Server(srv *http.Server, hostConfigs ...host.Configurator) Runner {
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/main/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// See `Run` for more.
|
||||
@@ -910,7 +910,7 @@ var (
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/main/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// See `Run` for more.
|
||||
@@ -949,7 +949,7 @@ func TLS(addr string, certFileOrContents, keyFileOrContents string, hostConfigs
|
||||
// Via host configurators you can configure the back-end host supervisor,
|
||||
// i.e to add events for shutdown, serve or error.
|
||||
// An example of this use case can be found at:
|
||||
// https://github.com/kataras/iris/blob/master/_examples/http-server/notify-on-shutdown/main.go
|
||||
// https://github.com/kataras/iris/blob/main/_examples/http-server/notify-on-shutdown/main.go
|
||||
// Look at the `ConfigureHost` too.
|
||||
//
|
||||
// Usage:
|
||||
|
||||
Reference in New Issue
Block a user