1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-31 22:05:06 +02:00
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-03-14 12:21:47 -07:00
parent abc669bd07
commit 0465314380

@ -27,6 +27,7 @@ type (
Context interface {
netContext.Context
SetNetContext(netContext.Context)
NetContext() netContext.Context
Request() engine.Request
Response() engine.Response
Path() string
@ -93,6 +94,10 @@ func (c *context) SetNetContext(ctx netContext.Context) {
c.netContext = ctx
}
func (c *context) NetContext() netContext.Context {
return c.netContext
}
func (c *context) Deadline() (deadline time.Time, ok bool) {
return c.netContext.Deadline()
}