Skip to content

Commit 672bedb

Browse files
committed
[+] listen and serve [=]
1 parent bdc299e commit 672bedb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/httpserver/httpserver.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ func New(options *Options) (*HTTPServer, error) {
3535

3636
return &h, nil
3737
}
38+
39+
func (t *HTTPServer) ListenAndServe() error {
40+
return http.ListenAndServe(t.options.ListenAddress, t.layers)
41+
}

0 commit comments

Comments
 (0)