Fork me on GitHub
#ring
<
2020-09-29
>
dharrigan06:09:42

Seems to work for me....

reefersleep11:09:25

Thank you very much for testing it out. I probably should have tried to do a minimal example myself before asking here in the channel; the project I’m working on has many layers on top of the “raw” jetty server.

dharrigan11:09:34

np 🙂

🍻 3
dharrigan06:09:00

❯ http --verbose :8080/api/ping
GET /api/ping HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: localhost:8080
User-Agent: HTTPie/2.2.0



HTTP/1.1 200 OK
Content-Length: 5
Date: Tue, 29 Sep 2020 06:19:35 GMT
Server: Jetty(9.4.28.v20200408)

Pong!

dharrigan06:09:20

(defn jetty-start
  [handler opts]
  (jetty/run-jetty handler (-> opts (assoc :send-server-version? false
                                           :send-date-header? false
                                           :join? false)))) ;; false so that we can stop it at the repl!

dharrigan06:09:28

❯ http --verbose :8080/api/ping
GET /api/ping HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: localhost:8080
User-Agent: HTTPie/2.2.0



HTTP/1.1 200 OK
Content-Length: 5

Pong!