Instead of id, pass (ref {}) to callbacks so they have their own STM ref’ed map.
That can be done with clojure.core/add-watch. Watcher in that scenario will grab new content and write it via AHC, or alternatively will clojure.core/send-off to execute IO operation in separate thread.
Should contain helper functions to call all HTTP verbs. Default set of call-backs.
Lower level of requesting:
- execute-request
- prepare-request
Changes:
- Stream as seq
- Streams used instead of byte vectors (issue-1)
- keyworded maps are used in api
Test suite should not fail when there is now hello-www on port 8080.
For now fns like GET will call prepare-get that will call prepare-reqeust. I don’t think prepare-get is necessary, should be quite fine to only use prepare-request.