mirror of
https://github.com/labstack/echo.git
synced 2025-03-31 22:05:06 +02: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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user