Commit graph

1998 commits

Author SHA1 Message Date
Tommi Reiman
e0dc618c4b Compile Schema coercers ahead of time -> 4x perf 2017-12-01 09:32:26 +02:00
Tommi Reiman
71eae5fac2 Better coercion examples 2017-12-01 09:31:21 +02:00
Tommi Reiman
5cfb5374d3
Merge pull request #49 from metosin/segment-router
Segment router (WIP)
2017-11-27 08:15:05 +02:00
Tommi Reiman
63b8cf924c
Merge pull request #51 from metosin/schema-coercion
Schema coercion
2017-11-27 08:11:35 +02:00
Tommi Reiman
9538d74ae0 Tune docs 2017-11-27 08:02:35 +02:00
Tommi Reiman
97598ce194 Fix :body coercion (not open, :body coercer) 2017-11-27 08:01:52 +02:00
Tommi Reiman
becd30386d Works with ClojureScript! 2017-11-27 08:00:27 +02:00
Tommi Reiman
132240b422 ClojureScriptify Exceptions 2017-11-26 22:04:51 +02:00
Tommi Reiman
7979c9de9d Remove normal middleware, slow and noicy 2017-11-26 21:51:55 +02:00
Tommi Reiman
03d4e8c4bf Implement coercion error handling 2017-11-26 21:51:43 +02:00
Tommi Reiman
4d772c62e1 Polish implementations 2017-11-26 21:51:21 +02:00
Tommi Reiman
861c16b195 initial commit 2017-11-24 19:09:45 +02:00
Tommi Reiman
293274fb68 implement catch-all params for segment-router 2017-11-24 18:58:48 +02:00
Tommi Reiman
85c4a0a8c0 don't test compojure-api, it's compojure all over 2017-11-24 18:58:17 +02:00
Tommi Reiman
e0786b73f0 Remove prefix-tree router as it's broken 2017-11-24 09:45:52 +02:00
Tommi Reiman
4490fc1685 Test the segment-router. prefix-tree fails on complex tests... 2017-11-24 09:42:53 +02:00
Tommi Reiman
5d7670de60 Welcome segment-router! 2017-11-24 09:01:05 +02:00
Tommi Reiman
102fd35f04 Functional segemnt-router 2017-11-24 07:34:14 +02:00
Tommi Reiman
ec35c2ebbf Polish segment-router 2017-11-23 16:01:40 +02:00
Tommi Reiman
636c7ecd24 Clean up internals 2017-11-23 15:52:59 +02:00
Tommi Reiman
8019cebdc7 Segment-router to rule 'em all 2017-11-20 15:17:38 +02:00
Tommi Reiman
607e34c671 Add :type meta to Routers 2017-11-20 15:17:25 +02:00
Tommi Reiman
8d99163aef
Merge pull request #48 from metosin/meta->data
BREAKING: route :meta => :data
2017-11-18 13:34:51 +02:00
Tommi Reiman
2dd91d91d6 BREAKING: route :meta => :data 2017-11-18 12:47:16 +02:00
Tommi Reiman
a246bf4a9e Final(?) tweeks 2017-11-13 07:56:04 +02:00
Tommi Reiman
1648b2d1b1 #reitit at slack 2017-11-13 07:25:33 +02:00
Tommi Reiman
ebbbf429ee Rewrite performance.md 2017-11-13 07:25:22 +02:00
Tommi Reiman
9c8d25c2cd Polish route tests 2017-11-13 07:25:03 +02:00
Tommi Reiman
127c071fc8 Update docs & perf tests 2017-11-12 22:01:53 +02:00
Tommi Reiman
e8ee224160 Fix tests 2017-11-12 16:00:32 +02:00
Tommi Reiman
9434dd08e7 Don't test for nil handler
* it's already verified by the ring-router
2017-11-12 15:43:27 +02:00
Tommi Reiman
63848838d5 respond with nil if async ring route doesn't match
* relates to #45
2017-11-11 22:12:06 +02:00
Tommi Reiman
4ea0dc2600 Fix typos & unfinished sentences 2017-11-11 17:50:27 +02:00
Tommi Reiman
01c97729bd
Merge pull request #46 from metosin/gen-wrap
Small changes
2017-11-11 15:37:46 +00:00
Tommi Reiman
44867fbcf5 :gen -> :gem-wrap in middleware
* as preparation for support of interceptors
2017-11-11 17:30:17 +02:00
Tommi Reiman
95b796e94c
Merge pull request #44 from metosin/trie
Prefix-tree router
2017-11-11 15:27:26 +00:00
Tommi Reiman
5390086d7f Fix docs 2017-11-11 16:52:32 +02:00
Tommi Reiman
8bde6aefa2 Test that different routers work correctly 2017-11-11 16:46:43 +02:00
Tommi Reiman
1f27021c29 Tries have a human-readable representation 2017-11-11 16:39:11 +02:00
Tommi Reiman
2f6bfb33f8 Use linear-router always if there are conflicting routes 2017-11-11 16:38:16 +02:00
Tommi Reiman
de993abf62 Move tests 2017-11-10 18:12:00 +00:00
Tommi Reiman
5d7786936c prefix-tree-router! 2017-11-10 18:12:00 +00:00
Tommi Reiman
0d63aa1d43 Cleanup arguments 2017-11-10 18:12:00 +00:00
Tommi Reiman
c378d0b5af fix payloads 2017-11-10 18:12:00 +00:00
Tommi Reiman
32a1be1466 Return also route-data 2017-11-10 18:12:00 +00:00
Tommi Reiman
e12bfeabf1 Flattened matching, 1.2ms -> 0.8ms!!! 2017-11-10 18:12:00 +00:00
Tommi Reiman
eeea39ca83 Re-implement using reified protocols
* tree can be optimzied on the fly!
2017-11-10 18:12:00 +00:00
Tommi Reiman
07861f43f9 prefix-tree impl WIP
* opensensors route match, 2.3µs => 1.3µs
* static routes looked first
* fixes pedestal #532
2017-11-10 18:12:00 +00:00
Tommi Reiman
39bc633576 j.u.HashMap fails with nil 2017-11-10 18:12:00 +00:00
Tommi Reiman
16116d3e58 quickbenck over rest-routes 2017-11-10 18:11:59 +00:00