ring

dharrigan 2020-09-29T06:20:42.002400Z

Seems to work for me....

reefersleep 2020-09-29T11:38:25.004300Z

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.

dharrigan 2020-09-29T11:39:34.004500Z

np πŸ™‚

🍻 1
dharrigan 2020-09-29T06:20:51.002600Z

before...

dharrigan 2020-09-29T06:21:00.002800Z

❯ 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!

dharrigan 2020-09-29T06:21:16.003100Z

after:

dharrigan 2020-09-29T06:21:20.003300Z

(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!

dharrigan 2020-09-29T06:21:28.003500Z

❯ 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!