Documentation ¶
Overview ¶
* This is yaag middleware for the web apps using the middlewares that supports http handleFunc
Index ¶
- Constants
- func After(apiCall *models.ApiCall, writer *httptest.ResponseRecorder, ...)
- func Before(apiCall *models.ApiCall, req *http.Request)
- func Handle(nextHandler http.Handler) http.Handler
- func HandleFunc(next func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
- func ReadBody(req *http.Request) *string
- func ReadHeaders(req *http.Request) map[string]string
- func ReadHeadersFromResponse(writer *httptest.ResponseRecorder) map[string]string
- func ReadMultiPostForm(mpForm *multipart.Form) map[string]string
- func ReadPostForm(req *http.Request) map[string]string
- func ReadQueryParams(req *http.Request) map[string]string
- type YaagHandler
Constants ¶
View Source
const MaxInMemoryMultipartSize = 32000000
32 MB in memory max
Variables ¶
This section is empty.
Functions ¶
func After ¶
func After(apiCall *models.ApiCall, writer *httptest.ResponseRecorder, w http.ResponseWriter, r *http.Request)
func HandleFunc ¶
func HandleFunc(next func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)
func ReadHeadersFromResponse ¶
func ReadHeadersFromResponse(writer *httptest.ResponseRecorder) map[string]string
Types ¶
type YaagHandler ¶
type YaagHandler struct {
// contains filtered or unexported fields
}
func (*YaagHandler) ServeHTTP ¶
func (y *YaagHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.