mirror of
https://github.com/labstack/echo.git
synced 2025-11-29 22:48:07 +02:00
Dropped Engine**#Object functions
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@@ -26,6 +26,7 @@ type (
|
||||
Context interface {
|
||||
netContext.Context
|
||||
Request() engine.Request
|
||||
SetResponse(engine.Response)
|
||||
Response() engine.Response
|
||||
Path() string
|
||||
P(int) string
|
||||
@@ -110,7 +111,12 @@ func (c *context) Request() engine.Request {
|
||||
return c.request
|
||||
}
|
||||
|
||||
// Response returns *Response.
|
||||
// SetResponse sets `engine.Response`.
|
||||
func (c *context) SetResponse(r engine.Response) {
|
||||
c.response = r
|
||||
}
|
||||
|
||||
// Response returns `engine.Response`.
|
||||
func (c *context) Response() engine.Response {
|
||||
return c.response
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user