Documentation
¶
Overview ¶
Package addheader provides a middleware for adding headers to HTTP responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilOption = errors.New("option cannot be nil")
ErrNilOption is returned when an option is nil.
Functions ¶
func New ¶
func New(options ...func(*Handler) error) (defs.Middleware, error)
New generates a new header adding middleware.
func WithHeaders ¶
WithHeaders configures the headers to add to responses.
func WithLogLevel ¶
WithLogLevel configures the log level to use with the logger.
Types ¶
Click to show internal directories.
Click to hide internal directories.