func (mw *PoweredByMiddleware) MiddlewareFunc(h HandlerFunc) HandlerFunc {

	poweredBy := xPoweredByDefault
	if mw.XPoweredBy != "" {
		poweredBy = mw.XPoweredBy
	}

	return func(w ResponseWriter, r *Request) {

		w.Header().Add("X-Powered-By", poweredBy)

		// call the handler
		h(w, r)

	}
}
func (mw *PoweredByMiddleware) MiddlewareFunc(h HandlerFunc) HandlerFunc {

	poweredBy := xPoweredByDefault
	if mw.XPoweredBy != "" {
		poweredBy = mw.XPoweredBy
	}

	return func(w ResponseWriter, r *Request) {

		w.Header().Add("X-Powered-By", poweredBy)

		
		h(w, r)

	}
}
func ( mw * PoweredByMiddleware ) MiddlewareFunc ( h HandlerFunc ) HandlerFunc { poweredBy := xPoweredByDefault if mw . XPoweredBy != " " { poweredBy = mw . XPoweredBy } return func ( w ResponseWriter , r * Request ) { w . Header ( ) . Add ( " " , poweredBy ) // call the handler h ( w , r ) } }
// MiddlewareFunc makes PoweredByMiddleware implement the Middleware interface.
MiddlewareFunc makes PoweredByMiddleware implement the Middleware interface .