refactor template cache, integrate responseWriterWrapper and integrate timeout

This commit is contained in:
2024-11-21 21:29:59 +01:00
parent 4c8c6121b1
commit 89afb56836
4 changed files with 98 additions and 27 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ func Test_BindJSON(t *testing.T) {
rr := httptest.NewRecorder()
c := &CTX{
W: rr,
W: &responseWriterWrapper{ResponseWriter: rr},
R: req,
}
@@ -90,7 +90,7 @@ func Test_BindForm(t *testing.T) {
rr := httptest.NewRecorder()
c := &CTX{
W: rr,
W: &responseWriterWrapper{ResponseWriter: rr},
R: req,
}