http-kit for duct

308 views
Skip to first unread message

Dru Sellers

unread,
Jun 13, 2015, 6:51:00 PM6/13/15
to clo...@googlegroups.com
Is there any interest in an http-kit version of duct? Or have everyone just written their own version?

-d

Dru Sellers

unread,
Jun 13, 2015, 6:56:17 PM6/13/15
to clo...@googlegroups.com
Nevermind. Jetty comes with the sample server.

James Reeves

unread,
Jun 13, 2015, 7:22:19 PM6/13/15
to clo...@googlegroups.com
It shouldn't be hard to write your own version. You could almost just take the Jetty component source and substitute "jetty" with "http-kit".

- James

On 13 June 2015 at 23:51, Dru Sellers <d...@drusellers.com> wrote:
Is there any interest in an http-kit version of duct? Or have everyone just written their own version?

-d

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dru Sellers

unread,
Jun 13, 2015, 11:03:59 PM6/13/15
to clo...@googlegroups.com
 It was indeed that easy. Thank for writing component in such a nice way !!

-d


You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/TLYsy4bSOzk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.

ngetty...@gmail.com

unread,
Oct 2, 2016, 6:49:20 AM10/2/16
to Clojure
Hi I'm new to clojure and duct. How can I change system.edn so that i can use Danielsz http-kit component. tnx

-ngetty

ngetty...@gmail.com

unread,
Oct 7, 2016, 4:26:53 AM10/7/16
to Clojure
I simply created a wrapper function, for the new-web-server function in Danielsz http-kit component, that will accept a map as the argument and wrote a reference to this function in "system.edn" i.e.

{:components {.... :http #var myduct.component.http-kit/http-kit-server}
 :endpoints {}
 :dependencies {...}
 :config {... :http {:port http-port}}}


myduct is the name of the project and

(defn http-kit-server [argmap]
  (system.components.http-kit/new-web-server (:port argmap)))

or something to this effect
Reply all
Reply to author
Forward
0 new messages