项目作者: duct-framework

项目描述 :
Integrant methods for running a Jetty web server
高级语言: Clojure
项目地址: git://github.com/duct-framework/server.http.jetty.git
创建时间: 2016-12-24T15:57:01Z
项目社区:https://github.com/duct-framework/server.http.jetty

开源协议:

下载


Duct server.http.jetty Build Status

Integrant multimethods for running a Jetty server for the Duct
framework.

Installation

Add the following dependency to your deps.edn file:

  1. org.duct-framework/server.http.jetty {:mvn/version "0.3.0"}

Or to your Leiningen project file:

  1. [org.duct-framework/server.http.jetty "0.3.0"]

Usage

The multimethods dispatch off the :duct.server.http/jetty key, which
is derived from :duct.server/http. The corresponding value is a map
of options for the Ring Jetty Adapter, plus a :handler key that
takes a handler function.

For example:

  1. {:duct.server.http/jetty
  2. {:port 3000
  3. :handler #ig/ref :app.example/handler}
  4. :app.example/handler {}}

A :logger key may also be specified, which is be used to log when the
server starts and when it stops. The value of the key should be an
implementation of the duct.logger/Logger protocol from the
duct.logger library.

License

Copyright © 2024 James Reeves

Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.