package
Version:
v0.5.2
Opens a new window with list of versions in this module.
Published: Mar 24, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ListenAndServe runs the http.Server until the context is canceled or an error
occurs.
Serve runs the http.Server until the context is canceled or an error occurs.
type Option func(*options) error
Option is a function that modifies the behavior of ListenAndServe and Serve.
WithShutdownTimeout sets the timeout for graceful shutdown.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.