1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 04:17:03 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-01-09 04:11:46 +02:00
parent 1258ceeb9f
commit 72c2dafd2e

View File

@@ -55,7 +55,8 @@ func WriteDeprecated(ctx *context.Context, options DeprecationOptions) {
} }
} }
// Deprecated marks a specific handler as a deprecated. // Deprecated wraps an existing API handler and
// marks it as a deprecated one.
// Deprecated can be used to tell the clients that // Deprecated can be used to tell the clients that
// a newer version of that specific resource is available instead. // a newer version of that specific resource is available instead.
func Deprecated(handler context.Handler, options DeprecationOptions) context.Handler { func Deprecated(handler context.Handler, options DeprecationOptions) context.Handler {