Skip to content

Commit 8919c64

Browse files
KingMobmike-thompson-day8
authored andcommitted
Update interceptor history
The Credit section seemed to say Pedestal created interceptors, but they're older than Clojure. Both Netty and Tomcat used them at least as far back as the early 00's, and the pattern was documented in at least one book. I wrote about it a bit more at length in https://clojurians.slack.com/archives/CDG3YQV6Z/p1685076301109489
1 parent 7b6fa64 commit 8919c64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/Interceptors.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,10 @@ __path__ adds a `:comment` describing _which_ path it goes to.
238238
> All truths are easy to understand once they are discovered <br>
239239
> -- Galileo Galilei
240240

241-
This elegant and flexible arrangement was originally
242-
designed by the [Pedestal Team](https://github.com/pedestal/pedestal/blob/master/guides/documentation/service-interceptors.md). Thanks!
241+
This elegant and flexible arrangement was
242+
adapted for Clojure by the [Pedestal Team](https://github.com/pedestal/pedestal/blob/master/guides/documentation/service-interceptors.md). Thanks!
243+
244+
Pre-Clojure work on interceptors can be found in [Tomcat's interceptors](https://tomcatbook.sourceforge.net/book/defaulthtml/ch04.html), Netty's ChannelPipeline handlers, and the [J2EE InterceptingFilter pattern](https://tomcatbook.sourceforge.net/book/defaulthtml/ch04.html) from _Pattern-Oriented Software Architecture, 2nd ed_.
243245

244246
## Let's Write An Interceptor
245247

0 commit comments

Comments
 (0)