Documentation ¶
Index ¶
- func CleanSession(r *http.Request) *http.Request
- func NewTestContext(method, path string, body *[]byte) (w *httptest.ResponseRecorder, r *http.Request)
- func NewTestContextWithDefaultSession(method, path string, body *[]byte) (w *httptest.ResponseRecorder, r *http.Request)
- func SetDefaultAdminSession(r *http.Request) *http.Request
- func SetSessionWith(r *http.Request, name string, sig string) *http.Request
- func SetUpGin() *gin.Engine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestContext ¶
func NewTestContext(method, path string, body *[]byte) (w *httptest.ResponseRecorder, r *http.Request)
https://github.com/gin-gonic/gin/issues/580#issuecomment-242168245
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.