Comments (3)
It seems like this already works. At least for :handle-ok
. I wrote the following facts/fixtures to prove it to myself. Would you be interested in a PR that adds the test below?
(defresource with-keyword-handler
:exists? {::important-message "#yolo"}
:handle-ok ::important-message)
(fact "keyword handlers should return their entry in the context"
(with-keyword-handler {:request-method :get})
=> {:headers {"Content-Type" "text/plain;charset=UTF-8"}, :body "#yolo", :status 200})
from liberator.
Thanks, but we already have a test at https://github.com/clojure-liberator/liberator/blob/master/test/test_execution_model.clj#L52
This issue was implemented in 46fb458 but not closed.
Thanks for the catch!
from liberator.
No worries. Thanks for pointing out the existing test.
from liberator.
Related Issues (20)
- Documentation (Decision Graph) broken HOT 1
- handle-exception raises exception HOT 1
- Reliance on javax.xml.ws HOT 6
- `combine` results in a lazy seq for lists and vectors HOT 1
- "GC overhead limit exceeded" caused by liberator.dev/logs HOT 2
- render-seq-generic strange behaviour for "text/html" "text/plain" "text/csv" HOT 1
- Blocking upgrade to java 9 & 10 HOT 3
- Default handler responses returned are invalid JSON [Was: JSON representation issue when resource does not exist] HOT 3
- javax.xml.ws on java 11 HOT 2
- A new home for the examples? HOT 2
- Disable passing response options HOT 1
- include defaults in decision graph HOT 1
- Boss, midje has a very good automated test method . HOT 2
- Support 409 for PATCH requests. HOT 7
- wrap-trace not working with component middleware stack. HOT 2
- Unable to set a cookie.
- How to extract the form data from a request in liberator? HOT 1
- post-redirect? not working or Preflight response is not successful
- Authorization vs Authentication HOT 5
- The decisions page should provide details about implementing decisions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liberator.