Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 972 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 972 Bytes

bakery-httpkit

A leaven component for running a http-kit server.

Install

Add [com.palletops/bakery-httpkit "0.3.1-SNAPSHOT"] to your :dependencies.

Usage

The com.palletops.bakery.httpkit/httpkit function returns a leaven component.

It takes a single map argument with the following keys:

:handler : the ring handler. Must be supplied.

:stop-timeout : a timeout, in ms, used when waiting for the server to process outstanding requests when stopping. The default is 100ms.

:config : a map that will be passed to httpkit's run-server function. The default port is 3000.

License

Copyright © 2014 Hugo Duncan

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