Documentation
¶
Overview ¶
Package httpx contains the foundation HTTP server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(ctx context.Context, listener net.Listener, c config.Config, logger *slog.Logger, application ...http.Handler) error
Serve owns the listener and drains requests when the context is canceled.
func ServeWithReady ¶
func ServeWithReady(ctx context.Context, listener net.Listener, c config.Config, logger *slog.Logger, application http.Handler, onReady func()) error
ServeWithReady reports readiness after net/http has started accepting on the already-bound listener, then drains requests when the context is canceled.
Types ¶
This section is empty.