// ServeHTTP serves HTTP endpoint with application configuration.
ServeHTTP serves HTTP endpoint with application configuration.
// ServeHTTP serves HTTP endpoint with application configuration .
func (fn AppHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
	if _, err := fn(w, r); err != nil {
		http.Error(w, http.StatusText(http.StatusInternalServerError),
			http.StatusInternalServerError)
	}
}
func ( fn AppHandler ) ServeHTTP ( w http . ResponseWriter , r * http . Request ) { if _ , err := fn ( w , r ) ; err != nil { http . Error ( w , http . StatusText ( http . StatusInternalServerError ) , http . StatusInternalServerError ) } }
ServeHTTP serves HTTP endpoint with application configuration.
ServeHTTP serves HTTP endpoint with application configuration .