1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

Context.IsCanceled() minor improvement

This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-12-18 03:16:36 +02:00
parent 2a048df5c7
commit 25ad31be50
2 changed files with 24 additions and 5 deletions

View File

@@ -506,6 +506,10 @@ var (
//
// A shortcut for the `context#IsErrPath`.
IsErrPath = context.IsErrPath
// IsErrCanceled reports whether the "err" is caused by a cancellation or timeout.
//
// A shortcut for the `context#IsErrCanceled`.
IsErrCanceled = context.IsErrCanceled
// ErrEmptyForm is the type error which API users can make use of
// to check if a form was empty on `Context.ReadForm`.
//