Skip to content
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

added colors to simple defaults for liberator #313

Closed
wants to merge 33 commits into from

Conversation

Tavistock
Copy link

closes #308. Doesn't account for defaults that are richer than just true or false

ordnungswidrig and others added 30 commits December 20, 2017 09:57
fix for save-logs! to avoid 'GC overhead limit exceeded'
Fixes clojure-liberator#199

Bad qvals in these headers will now cause a 400 status code to be returned.
This drops JDK7, as JDK8 has become the new baseline.

Also, Clojure 1.10.0 drops support for JDK7.
…ld-matrix

Expand build matrix and add new Clojure versions
```
(defresource example
  "This is my awesome resource!"
  ...)
```
…e-docstring

Allow defresource to have a docstring
The `combine` function attempts to add new values to a collection by
merging them. However, for lists and a vectors, a lazy sequence is
returned rather than a list or a vector.

For lists, `(apply list (concat ...` is used instead of `(into ...` in
order to preserve element order for backwards compatibility, as `into`
would put the new elements at the head of the list.

For vectors, `into` is used, as new elements are added to the tail.

The implementation for sets is simplified.
…mbine-results

Improve `combine` to not return lazy sequences
Handle malformed Accept-Language Accept-Charset & Accept-Encoding
DerGuteMoritz and others added 3 commits May 17, 2019 15:40
The default modified-since? decision would always evaluate to false
when the request contained an "if-modified-since" header but the
response didn't contain a "last-modified" header. This seems wrong
because the decision is not actually able to determine whether the
resource has been modified or not.

This patch makes it evaluate to true instead which seems more
reasonable in this situation.
@Tavistock
Copy link
Author

There is also https://github.com/Tavistock/liberator/tree/trm.default-graph-2 which adds grayed out boxes, I was trying to emulate http://clojure-liberator.github.io/liberator/doc/decisions.html but idk how to do it automatically. Maybe adding a ^:internal meta tag to some of them?

@Tavistock Tavistock force-pushed the trm.default-graph branch 2 times, most recently from d2e59d8 to 00415ac Compare July 5, 2019 13:55
@Tavistock Tavistock closed this Jul 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

include defaults in decision graph
4 participants