This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-01
Channels
- # adventofcode (11)
- # aws (8)
- # beginners (70)
- # boot (2)
- # cider (9)
- # cljs-dev (29)
- # cljsrn (2)
- # clojure (67)
- # clojure-android (2)
- # clojure-dusseldorf (5)
- # clojure-greece (12)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-poland (3)
- # clojure-russia (5)
- # clojure-spec (80)
- # clojure-uk (9)
- # clojurescript (73)
- # core-async (17)
- # cursive (1)
- # data-science (5)
- # datomic (29)
- # emacs (5)
- # fulcro (257)
- # graphql (2)
- # hoplon (2)
- # jobs (2)
- # klipse (3)
- # leiningen (9)
- # lumo (4)
- # nyc (1)
- # off-topic (48)
- # om (7)
- # other-languages (11)
- # pedestal (4)
- # re-frame (18)
- # remote-jobs (1)
- # rum (10)
- # shadow-cljs (5)
- # spacemacs (20)
- # sql (5)
- # test-check (44)
- # unrepl (8)
- # yada (9)
It takes 4secs with Cheshire to stream a 100Mb data from memory into JSON file on my Macbook Pro with SSD, without any web libraries involved. You can carve out it to sub-second with using Jackson directly or a direct clojure-wrapper like Jsonista.
Playing a bit with Yada. Was adding a route [“assets/” assets] which is a new-classpath-resource. But if the url within /assets/ is not found the next route is not used (my custom 404) But the internal Yada 404. So now I wonder, can I get the routing mechanism to continue if it don’t find anything within asset/ or how do I alter the default 404 page?
See status responses section in the manual
Welcome to yada btw. @kardan
@malcolmsparks will do, & thanks
I struggle to understand how to use status responses with new-classpath-resource - I have to be missing something. Anyone know of an example to look at?
Ah. Good point. Copy and paste new-classpath-resource to your own codebase and tweak it
Better still, provide a backstop yada resource and place it after the new-classpath-resource
Use a bidi pattern of true to match everything at the end of your route structure