// WithMiddleware configures a middleware that will be used by the handler
// to pro- and post-process HTTP requests and health checks.
// Refer to the documentation of type Middleware for more information.
WithMiddleware configures a middleware that will be used by the handler
to pro- and post-process HTTP requests and health checks.
Refer to the documentation of type Middleware for more information.
// WithMiddleware configures a middleware that will be used by the handler // to pro - and post - process HTTP requests and health checks . // Refer to the documentation of type Middleware for more information .
func WithMiddleware(middleware ...Middleware) HandlerOption {
	return func(cfg *handlerConfig) {
		cfg.middleware = append(cfg.middleware, middleware...)
	}
}
func WithMiddleware ( middleware ... Middleware ) HandlerOption { return func ( cfg * handlerConfig ) { cfg . middleware = append ( cfg . middleware , middleware ... ) } }
WithMiddleware configures a middleware that will be used by the handler
to pro- and post-process HTTP requests and health checks.
WithMiddleware configures a middleware that will be used by the handler to pro - and post - process HTTP requests and health checks .