Documentation
¶
Index ¶
- func DoDELETE(handler echo.HandlerFunc, url string, urlParams map[string]string) (rec *httptest.ResponseRecorder, err error)
- func DoGET(handler echo.HandlerFunc, url string, urlParams map[string]string) (rec *httptest.ResponseRecorder, err error)
- func DoPOST(handler echo.HandlerFunc, url string, json string, urlParams map[string]string) (rec *httptest.ResponseRecorder, err error)
- func DoPUT(handler echo.HandlerFunc, url string, json string, urlParams map[string]string) (rec *httptest.ResponseRecorder, err error)
- func HeaderForJSON() map[string]string
- type Request
- type Response
- type TestCase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoDELETE ¶
func DoDELETE(handler echo.HandlerFunc, url string, urlParams map[string]string) (rec *httptest.ResponseRecorder, err error)
DoDELETE return echo.Context and httptest.ResponseRecorder for DELETE Request (deprecated)
func DoGET ¶
func DoGET(handler echo.HandlerFunc, url string, urlParams map[string]string) (rec *httptest.ResponseRecorder, err error)
DoGET return recorder and error for GET API (deprecated)
func DoPOST ¶
func DoPOST(handler echo.HandlerFunc, url string, json string, urlParams map[string]string) (rec *httptest.ResponseRecorder, err error)
DoPOST return echo.Context and httptest.ResponseRecorder for POST Request (deprecated)
func DoPUT ¶
func DoPUT(handler echo.HandlerFunc, url string, json string, urlParams map[string]string) (rec *httptest.ResponseRecorder, err error)
DoPUT return echo.Context and httptest.ResponseRecorder for PUT Request (deprecated)
func HeaderForJSON ¶ added in v0.8.30
HeaderForJSON to generate header for json-based API
Types ¶
type Request ¶ added in v0.8.30
type Request struct {
Method string
Target string
Body string
Header map[string]string
URLParams map[string]string
}
Request for testcase
Click to show internal directories.
Click to hide internal directories.