title: How to use gorilla mux with http.TimeoutHandler
body: <p>In an HTTP server written in go, I use <a href="http://www.gorillatoolkit.org/pkg/mux" rel="nofollow">gorilla/mux</a> for routing,<br>
  I want to use <code>http.TimeoutHandler</code> (and/or other "middleware") but I can't understand where I can fit them.</p>
  
  <p>To make it clear:</p>
  
  <ol>
  <li>I create a new Router by <code>gorillaMux := mux.NewRouter()</code>  </li>
  <li>add my routes by calls like <code>gorillaMux.HandleFunc("/", rootHandler)</code>    </li>
  <li>I create the server by <code>server := &amp;http.Server{Addr:":1234"}</code> and <code>server.ListenAndServe()</code>    </li>
  </ol>
  
  <p>Where can I insert the <code>http.TimeoutHandler</code> or any other middleware for that matter?</p>