-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wrappers for Finagle HTTP #4
Conversation
…o specific dependency on finagle.http.
([v] | ||
(Option/apply v))) | ||
|
||
(defn empty? [^Option o] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the docstring for the empty?
& get
fns should come before the argument list, otherwise codox won't pick up the docstring.
Overall this is really awesome @bguthrie! One thing to think about is the use of Many configuration items that used to be on Server/Client Builder are now configured through stack params on the codec. I'd rather add wrappers around the more forward compatible Codec APIs but hate to throw out the work you've already done. What do you think? I can start adding a wrapper for stack params if you want. |
Thanks for the comments! I guess I could go either way with the |
The CI build seems to be failing on the 1.4 branch specifically, perhaps related to the addition of the |
Rather than try to fix the build using |
i've maintained 1.4 compatibility so this can be used with Storm (which unfortunately is locked at 1.4) Is there an older version of clj-http that you could use? |
I've removed |
(m/set-content-string "Hello, World"))))) | ||
|
||
(facts "about the HTTP server" | ||
(let [s (server/serve ":3000" hello-world) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need to be closed after the test runs? otherwise successive runs through lein midje :autotest
will fail since the port will already be bound
Fixed! Sorry, good catch––wasn't running with |
one last thing! your commits with i'd like to maintain Clojure 1.4 compatibility since Storm is locked in at that version (and my main production usage of finagle-clojure uses Storm). Is that ok with you? I like |
Sorry! Saw that earlier and I thought I'd fixed it on the last push. I totally hear you on 1.4 compatibility. I'm just using |
this is really awesome, thanks @bguthrie! |
👍 Awesome. Thanks for all the great feedback! MySQL on the way soon. |
This pull request adds preliminary support for Finagle HTTP. It provides constructors and Clojure-friendly wrappers for
Server
,Request
, andResponse
objects, and basicServerBuilder
support. It does not yet attempt to wrap all possible getters and setters.