feat(controller,app): compress http responses
Some checks reported errors
arcad/emissary/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
arcad/emissary/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
813f837291
commit
bb03b3a54a
@ -48,6 +48,7 @@ func (s *Server) Start(ctx context.Context, addr string) (err error) {
|
|||||||
router := chi.NewRouter()
|
router := chi.NewRouter()
|
||||||
|
|
||||||
router.Use(middleware.Logger)
|
router.Use(middleware.Logger)
|
||||||
|
router.Use(middleware.Compress(5))
|
||||||
|
|
||||||
handler := edgeHTTP.NewHandler(s.handlerOptions...)
|
handler := edgeHTTP.NewHandler(s.handlerOptions...)
|
||||||
if err := handler.Load(s.bundle); err != nil {
|
if err := handler.Load(s.bundle); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user