0.2.3 permalink Arrow_down_16x16

run-jetty

ring.adapter.jetty

  • (run-jetty handler options)
Serve the given handler according to the options.
Options:
:configurator - A function called with the Server instance.
:port
:host
:join? - Block the caller: defaults to true.
:ssl? - Use SSL.
:ssl-port - SSL port: defaults to 443, implies :ssl?
:keystore
:key-password
:truststore
:trust-password

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source ring/adapter/jetty.clj:49 top

(defn #^Server run-jetty
  "Serve the given handler according to the options.
  Options:
    :configurator   - A function called with the Server instance.
    :port
    :host
    :join?          - Block the caller: defaults to true.
    :ssl?           - Use SSL.
    :ssl-port       - SSL port: defaults to 443, implies :ssl?
    :keystore
    :key-password
    :truststore
    :trust-password"
  [handler options]
  (let [#^Server s (create-server (dissoc options :configurator))]
    (when-let [configurator (:configurator options)]
      (configurator s))
    (doto s
      (.setHandler (proxy-handler handler))
      (.start))
    (when (:join? options true)
      (.join s))
    s))
Vars in ring.adapter.jetty/run-jetty: defn doto let when when-let
Used in 0 other vars

Comments top

No comments for run-jetty. Log in to add a comment.