From 8512c9fb3cbc14e48ff1f017d59aa3222c1cdc42 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 27 Jun 2021 23:34:37 +0800 Subject: [PATCH] chore: remove support fiber Signed-off-by: Bo-Yi Wu --- gofight.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gofight.go b/gofight.go index 4c1ec9a..75e1748 100644 --- a/gofight.go +++ b/gofight.go @@ -392,16 +392,3 @@ func (rc *RequestConfig) Run(r http.Handler, response ResponseFunc) { r.ServeHTTP(w, req) response(w, req) } - -// // RunX is introduced to support FiberEngine -// func (rc *RequestConfig) RunX(app *fiber.App, response ResponseFunc) { -// req, w := rc.initTest() -// resp, err1 := app.Test(req) -// w.Code = resp.StatusCode -// w.Result().Header = resp.Header.Clone() -// body, _ := ioutil.ReadAll(resp.Body) -// w.Body.Write(body) -// if err1 == nil { -// response(w, req) -// } -// }