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

Engine#Multipart,#FormFile. Closes #394.

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-03-12 15:06:52 -08:00
parent ac25928fd0
commit 7942e4a77b
6 changed files with 51 additions and 12 deletions

View File

@ -2,6 +2,7 @@ package engine
import (
"io"
"mime/multipart"
"time"
"github.com/labstack/gommon/log"
@ -30,6 +31,8 @@ type (
Method() string
Body() io.ReadCloser
FormValue(string) string
FormFile(string) (*multipart.FileHeader, error)
MultipartForm() (*multipart.Form, error)
}
// Response defines an interface for HTTP response.