yada
yada copied to clipboard
A powerful Clojure web library, full HTTP, full async - see https://juxt.pro/yada/index.html
I have a GET resource that takes a header parameter. `:parameters {:header {(schema/required-key "x-custom-header") String}}` If it gets a HEAD request with the header parameter, yada doesn't extract the parameters....
Header parameters need to be specified as a map with required keys, e.g. ``` {:header {(schema/required-key "x-orig-url") String}} ``` This could probably be documented clearer. Also could document that header...
When giving a java.util.Date object to the `:last-modified` field, it will automatically convert it into a string for the headers and give something like this : "Wed, 20 Sep 2017...
When creating a transit reader or writer in Clojure, there is a third argument which is a map of options. It would be nice if yada allowed specifying those options,...
REF: https://tools.ietf.org/html/rfc7538 Cost: * POST -> GET might be depended upon behaviour by users of `redirect` (so new option/function) * not all clients understand the code (relatively new code dated...
Reference: https://www.owasp.org/index.php/HttpOnly Benefits: * Stops a common XSS attack Cost: * Cannot read/write the cookie from javascript, which is confusing behaviour. But I don't think this is a default behaviour...
When there's a large Referer header present, the cookies don't get parsed into the context. The use case is the GraphiQL client that will send a referer header with the...
I having trouble understanding path-for, which comes in various ns: I've been running aleph with a ring handler around bidi routes. yada.ctx/path-for expects a uri-info on the ctx bidi.bidi/path-for expects...
It is possible to add default values to a resource model by merging them with the resource (carefully), or after the fact with a `postwalk`. ```clj (defn update-resources [routes f...
The following snippet seems to point out that there is no roundtrip for "application/transit+msgpack" (it works for "application/transit+json"). It uses `response-for` on a `yada/resource` and tries to parse the body...