Skip to content

Commit

Permalink
chore: remove support fiber
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 27, 2021
1 parent 434871d commit 8512c9f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions gofight.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
// }
// }

0 comments on commit 8512c9f

Please sign in to comment.