   [request]
   {:status  200
    :headers {"Content-Type" "text/plain"}
-   :params {:stuff "the x y"}
    :body (with-out-str (clojure.pprint/pprint request))})
 
 



;; Requests for exported files in aws.

(defn redirect-to-aws-url
  "Creates a redirection response, which redirects to the aws download link."
  [aws-cred filename]

  (reset-server!)

  ;(client/request)
  (let [params {:basic-auth [(:export-server-auth-username env/env)
                             (:export-server-auth-pass env/env)]
                :query-params {:zinvite "6sc6vt"
                               ;:at-date 
                               :format "csv"}}]
