Code Monkey home page Code Monkey logo

ring-pulsar-jetty9-adapter's Introduction

ring-pulsar-jetty9-adapter

A Ring adapter that uses the Jetty webserver with pulsar fibers as concorency primitives.

This is completely based on jetty adapter from https://github.com/ring-clojure/ring but uses the latest stable jetty version: 9.1.1.

Pulsar: http://docs.paralleluniverse.co/pulsar/

How to use?

(ns myns.core
  (:require [ring.adapter.pulsar.jetty9 :as jetty])
  (:gen-class))

(defn app [req]
  {:status  200
   :headers {"Content-Type" "text/html"}
   :body    "hello HTTP!"})

(defn- main
  [& args]
  (jetty/run-jetty #'app {:port 8080}))

Options:

:port         - the port to listen on (defaults to 80)
:host         - the hostname to listen on
:join?        - blocks the thread until server ends (defaults to true)
:daemon?      - use daemon threads (defaults to false)
:ssl?         - allow connections over HTTPS
:ssl-port     - the SSL port to listen on (defaults to 443, implies :ssl?)
:keystore     - the keystore to use for SSL connections
:key-password - the password to the keystore
:truststore   - a truststore to use for SSL connections
:trust-password - the password to the truststore
:max-idle-time  - the maximum idle time in milliseconds
                  for a connection (default 200000)
:client-auth  - SSL client certificate authenticate, may be
                set to :need, :want or :none (defaults to :none)"

License

Copyright © 2014 Andrey Antukh and released under an MIT license

Copyright © 2009-2013 Mark McGranaghan and released under an MIT license.

ring-pulsar-jetty9-adapter's People

Stargazers

Scott Jappinen avatar

Watchers

James Cloos avatar Andrey Antukh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.