    [ring.adapter.jetty :as jetty])
   (:import
    (java.io ByteArrayInputStream InputStream)
-   (java.util TimeZone)
    (org.eclipse.jetty.server Server NCSARequestLog Connector HttpConnectionFactory)
    (org.eclipse.jetty.server.handler RequestLogHandler)
    (org.eclipse.jetty.servlets.gzip GzipHandler)))

    (.setRequestLog
      (doto (NCSARequestLog.)
        (.setLogLatency true)
        (.setLogDateFormat "yyyy-MM-dd hh:mm:ss.SSS")))))

(defn- create-gzip-handler

  ONE_MB)

(def MAX_REQUEST_BODY_SIZE
 "The maximum size of a request to body. This is set to 5 MB prevent large requests coming in
  that cause out of memory exceptions. A large ISO document like AST_L1A can be 120K characters which
  would take up about 240KB in Java."
 (* 5 ONE_MB))

(defn- routes-fn-verify-size
