title: How do I programmatically set gzip in Jetty?
body: <p>I'm writing a web app using Noir and clojure, which uses Jetty. Jetty has two ways of using gzip, one for static, and one for dynamic, they are described in <a href="https://stackoverflow.com/a/9113129/104021">https://stackoverflow.com/a/9113129/104021</a>. I want to turn on both static and dynamic gzipping, but our project doesn't use web.xml files, and doesn't want to start.</p>
  
  <p>How do I <em>programmatically</em> set jetty to use gzip (ie without having a web.xml)?</p>