Documentation
¶
Overview ¶
Package httputil contains additional functionality for working with http.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeWithGracefulStop ¶
func ServeWithGracefulStop(ctx context.Context, handler http.Handler, li net.Listener, gracefulTimeout time.Duration) error
ServeWithGracefulStop serves the HTTP listener until ctx.Done(), and then gracefully stops and waits for gracefulTimeout before definitively stopping.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.