1
0
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:
Vishal Rana
2016-03-10 12:05:33 -08:00
parent 38d010090f
commit 8ee864ae08
13 changed files with 111 additions and 164 deletions

View File

@@ -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
}