Err returns nil when c.Request has no Context.
()
| 1455 | |
| 1456 | // Err returns nil when c.Request has no Context. |
| 1457 | func (c *Context) Err() error { |
| 1458 | if !c.hasRequestContext() { |
| 1459 | return nil |
| 1460 | } |
| 1461 | return c.Request.Context().Err() |
| 1462 | } |
| 1463 | |
| 1464 | // Value returns the value associated with this context for key, or nil |
| 1465 | // if no value is associated with key. Successive calls to Value with |