1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-14 13:46:23 +00:00

🚀 How about compatibling with httpexpect #485

This commit is contained in:
ReneWerner87 2020-06-24 21:36:40 +02:00
parent 21d8ec4d05
commit 09e9915e9c

5
app.go
View File

@ -476,6 +476,11 @@ func (app *App) Listen(address interface{}, tlsconfig ...*tls.Config) error {
return app.server.Serve(ln)
}
// Handler returns the server handler
func (app *App) Handler() fasthttp.RequestHandler {
return app.handler
}
// Shutdown gracefully shuts down the server without interrupting any active connections.
// Shutdown works by first closing all open listeners and then waiting indefinitely for all connections to return to idle and then shut down.
//