1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-13 01:30:31 +02:00

Object method to get real object

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-02-08 16:48:03 -08:00
parent 3f48b92c5d
commit 0731959a98
10 changed files with 55 additions and 41 deletions

View File

@ -15,16 +15,17 @@ type (
}
Request interface {
URI() string
URL() URL
Header() Header
// Proto() string
// ProtoMajor() int
// ProtoMinor() int
RemoteAddress() string
Method() string
URI() string
URL() URL
Body() io.ReadCloser
FormValue(string) string
Object() interface{}
}
Response interface {
@ -36,6 +37,7 @@ type (
Committed() bool
SetWriter(io.Writer)
Writer() io.Writer
Object() interface{}
}
Header interface {