Jetty 9
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
src/nano
test/nano
.gitignore
LICENSE
README.md
project.clj

README.md

Nano

A Clojure library that implements an embedded Jetty 9 server and handler.

This library is pre-alpha. The api has not been finalized. Breaking changes are possible.

Usage

;; In your ns statement:
(ns my.ns
  (:require [nano.jetty :as jetty]))

Start Server

;; To start server and join thread
(jetty/run-jetty
  #'your-handler
  :port 8080
  :max-threads 150
  :min-threads 50
  :acceptors -1
  :selectors -1
  :exception-handler #'your-exception-handler)

;; To return Server object that you must call .start on.
(jetty/create-jetty
  #'your-handler
  :port 8080
  :max-threads 150
  :min-threads 50
  :acceptors -1
  :selectors -1
  :exception-handler #'your-exception-handler)

License

:license {:name "MIT License"
          :url "http://mit-license.org/"}